// Numbas version: exam_results_page_options {"name": "Nick's copy of Scientific notation: scientific notation to large numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "advice": "", "statement": "

Write the following numbers in decimal notation.

", "parts": [{"steps": [{"marks": 0, "scripts": {}, "prompt": "

A number is in scientific notation if it is written as a decimal multiplied by some power of 10, where the decimal has exactly one digit in front of the decimal place. For example:

\n

\\[1.234\\times 10^6, \\quad \\text{and} \\quad 3.01\\times 10^{-3}\\]

\n

are both in scientific notation.

\n

\n
\n

Recall that multiplying by powers of 10 moves the decimal point, for example multiplying a number by $10^6$ moves the decimal point six places to make the number bigger (the decimal point moves to the right). In particular:

\n

\\[1.234\\times 10^6 = 1\\,234\\,000\\]

\n

Note there is a decimal point after the last zero that we do not write simply because there is no reason to.

", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "type": "information"}], "showCorrectAnswer": true, "variableReplacements": [], "scripts": {}, "prompt": "

$\\var{dec1}\\times 10^\\var{pow1}$ = [[0]]

", "stepsPenalty": "1", "variableReplacementStrategy": "originalfirst", "type": "gapfill", "gaps": [{"maxValue": "{q1}", "marks": 1, "showCorrectAnswer": true, "scripts": {}, "allowFractions": false, "minValue": "{q1}", "variableReplacementStrategy": "originalfirst", "showPrecisionHint": false, "correctAnswerFraction": false, "variableReplacements": [], "type": "numberentry"}], "marks": 0}, {"steps": [{"marks": 0, "scripts": {}, "prompt": "

A number is in scientific notation if it is written as a decimal multiplied by some power of 10, where the decimal has exactly one digit in front of the decimal place. For example:

\n

\\[1.234\\times 10^6, \\quad \\text{and} \\quad 3.01\\times 10^{-3}\\]

\n

are both in scientific notation.

\n

\n
\n

Recall that multiplying by powers of 10 moves the decimal point, for example multiplying a number by $10^6$ moves the decimal point six places to make the number bigger (the decimal point moves to the right). In particular:

\n

\\[1.234\\times 10^6 = 1\\,234\\,000\\]

\n

Note there is a decimal point after the last zero that we do not write simply because there is no reason to.

", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "type": "information"}], "showCorrectAnswer": true, "variableReplacements": [], "scripts": {}, "prompt": "

$\\var{dec2}\\times 10^\\var{pow2}$ = [[0]]

", "stepsPenalty": "1", "variableReplacementStrategy": "originalfirst", "type": "gapfill", "gaps": [{"maxValue": "{q2}", "marks": 1, "showCorrectAnswer": true, "scripts": {}, "allowFractions": false, "minValue": "{q2}", "variableReplacementStrategy": "originalfirst", "showPrecisionHint": false, "correctAnswerFraction": false, "variableReplacements": [], "type": "numberentry"}], "marks": 0}], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "notes": "

I tried pattern matching, I suck at javascript, I couldn't get it to check it was in the right form, nor check each part of the answer separately using something like 'm_all((m_all(??))*10^m_all(??))' or '(m_all(??));dec*10^m_all(??);power'

"}, "functions": {"spacenumber": {"language": "javascript", "parameters": [["n", "number"]], "definition": "var parts=n.toString().split(\".\");\n if(parts[1] && parts[1].length<2) {\n parts[1]+='0';\n }\n return parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g, \" \") + (parts[1] ? \", \" + parts[1] : \"\");", "type": "string"}}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"js": "", "css": ""}, "showQuestionGroupNames": false, "tags": ["converting", "scientific notation", "standard form"], "variables": {"q1": {"description": "", "templateType": "anything", "definition": "precround(dec1*10^pow1,0)", "name": "q1", "group": "Ungrouped variables"}, "pow1": {"description": "", "templateType": "anything", "definition": "random(2..6)", "name": "pow1", "group": "Ungrouped variables"}, "pow2": {"description": "", "templateType": "anything", "definition": "random(4..8)", "name": "pow2", "group": "Ungrouped variables"}, "dec1": {"description": "", "templateType": "anything", "definition": "random(1.1..9.9#0.01)", "name": "dec1", "group": "Ungrouped variables"}, "dec2": {"description": "", "templateType": "anything", "definition": "random(1.1..9.9#0.001)", "name": "dec2", "group": "Ungrouped variables"}, "q2": {"description": "", "templateType": "anything", "definition": "precround(dec2*10^pow2,0)", "name": "q2", "group": "Ungrouped variables"}}, "name": "Nick's copy of Scientific notation: scientific notation to large numbers", "variable_groups": [], "ungrouped_variables": ["dec1", "pow1", "q1", "dec2", "pow2", "q2"], "type": "question", "contributors": [{"name": "Nick Walker", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2416/"}]}]}], "contributors": [{"name": "Nick Walker", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2416/"}]}