-
-
Save christianp/1148867 to your computer and use it in GitHub Desktop.
Complex numbers and display/simplification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
name: testcom | |
questions: [ | |
{ | |
name: Complex Test | |
statement: """Express the following in the form $a+bi$ where $a$ and $b$ are real. """ | |
variables: { | |
a4: "s4*random(1..9)" | |
b4: "s1*random(1..9)" | |
a5: "s4*random(1..9)" | |
b5: "s1*random(1..9)" | |
s4: "random(1,-1)" | |
s1: "random(1,-1)" | |
} | |
parts:[ | |
{ | |
type: GapFill | |
prompt: """$\simplify[all]{({a4}+{b4}*i)/({a5}+{b5}*i)} = \;\;$[[0]].""" | |
gaps: [ | |
{type: jme | |
answer: "{(a4+b4*i)/(a5+b5*i)}" | |
answersimplification:"all,fractionNumbers" | |
marks: 1 | |
checkingType: AbsDiff | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment