mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-28 17:29:39 +00:00
Fix formatting of added instructions
This commit is contained in:
parent
09ea24d84d
commit
b2ca8016fb
7 changed files with 25 additions and 22 deletions
|
|
@ -77,11 +77,10 @@ class IntermediateIntegrationDataset(ProceduralDataset):
|
|||
"Evaluate the indefinite integral: ∫ {integrand} dx",
|
||||
]
|
||||
self.added_instruction = """
|
||||
\n\n
|
||||
In addition, When doing calculation, Use the following instructions together with your mathematical ingenuity to solve the integral problems
|
||||
## 1. Use ** instead ^ to represent powers. For example 7*X**2 instead of 7*X^2.
|
||||
## 2. Always use * when doing all sorts of multiplcation in your reasoning steps. For example Use [-3*X**3*sin(X) - 9*X**2*cos(X) + 18*X*sin(X) + 18*cos(X) + C] instead of [-3x3sin(x) - 9x2cos(x) + 18xsin(x) + 18cos(x) + C].
|
||||
"""
|
||||
In addition, when doing calculation, use the following instructions together with your mathematical ingenuity to solve the integral problems
|
||||
## 1. Use ** instead ^ to represent powers. For example 7*X**2 instead of 7*X^2.
|
||||
## 2. Always use * when doing all sorts of multiplcation in your reasoning steps. For example Use [-3*X**3*sin(X) - 9*X**2*cos(X) + 18*X*sin(X) + 18*cos(X) + C] instead of [-3x3sin(x) - 9x2cos(x) + 18xsin(x) + 18cos(x) + C].
|
||||
"""
|
||||
|
||||
def _get_outer_constant(self, rng: random.Random) -> int:
|
||||
"""Helper to generate signed outer constant from config"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue