Skip to content

Instantly share code, notes, and snippets.

@BillFoster
Created August 17, 2011 11:52
Show Gist options
  • Save BillFoster/1151395 to your computer and use it in GitHub Desktop.
Save BillFoster/1151395 to your computer and use it in GitHub Desktop.
new simplification rules
{
name: TestRules
duration: 0
percentpass: 0
shufflequestions: false
navigation: {
reverse: true
browse: true
}
rulesets: {
surdFractions: [
{
pattern: 'a/sqrt(b)'
conditions: ['a=b']
result: 'sqrt(a)'
}
]
reduceSurd: [collectNumbers,surdFractions]
}
questions: [
{ name: Question 1
variables: {
a: "random(1..100#0.01)"
b:"5"
c:"5"
}
parts: [
{ type: numberentry
marks: 1
prompt: "Write $\simplify[surdFractions]{{b}/sqrt({c})}$"
answer: "{a*1000}"
steps: [
{ type: information
prompt: "Recall: $1$ km = $1000$ m."
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment