{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"scicode","formal_name":"SciCode","introduction":"SciCode evaluates the ability to solve scientific research problems through code. Problems are decomposed into subproblems; this dev import preserves the relationships between 15 parent problems and 50 subproblems.","introduction_ja":"","introduction_en":"","category":"Category not supplied","task_count":null,"acquisition_status":"Acquisition status not supplied","official_url":"https://huggingface.co/datasets/SciCode1/SciCode","indexing_mode":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"30d364d4-1b57-5109-98e8-974d10da258f","task_key":"dev--38b5a2e7-b9f1-5c81-aa87-6c04903a3eb1--49~2e3","task_revision_id":"3","upstream_id":"49.3","short_description":"Write a function that implements the 4th order accurate classical Runge-Kutta…","config":"","split":"dev","body":"{\"step_background\":\"Background\\nThe classical 4th order accurate time stepper is a multi-step time stepping algorithm that computes 4 intermediate values $k_1$, $k_2$, $k_3$, $k_4$ and combines them with the initial state according to\\n\\n$$\\nu_{out} = u_{in} + \\\\Delta t/6 (k_1 + 2 k_2 + 2 k_3 + k_4)\\n$$\\n\\nwhere $\\\\Delta t$ is the time step size. This algorithm is 5th order accurate locally and 4th order accurate globally.\\n\\nThe textbook implementation of this algorithm is:\\n\\n$\\\\begin{aligned} & k_1=f\\\\left(u_{in}, t_0\\\\right) \\\\\\\\ & k_2=f\\\\left(u_{in}+k_1 \\\\frac{h}{2}, t_0+\\\\frac{h}{2}\\\\right) \\\\\\\\ & k_3=f\\\\left(u_{in}+k_2 \\\\frac{h}{2}, t_0+\\\\frac{h}{2}\\\\right) \\\\\\\\ & k_4=f\\\\left(u_{in}+k_3 h, t_0+h\\\\right)\\\\end{aligned}$\\n\\nCombine `uout = uin + dt/6*(k1+2*k2+2*k3+k4)`\",\"step_description_prompt\":\"Write a function that implements the 4th order accurate classical Runge-Kutta time integrator to evolve a set of particle locations and velocties forward in time subject to Newton's gravity. The function will take as input a state vector `uin` of size `N*6` for `N` particles containing in order the each particle's `x`, `y`, `z` location and its `vx`, `vy`, `vz` velocities as well as masses $mass$ for each particle. Use the function `Nbody_RHS` described above to compute the right hand side of the evolution equation.\"}","display_format":"scicode-step","language":"","answer_status":"published","assets":[],"source_url":"https://huggingface.co/datasets/SciCode1/SciCode","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}