I am hoping to move from D2L to Canvas for my pharmacokinetics course this fall, but am having difficulty both converting my equations from D2L to Canvas, and finding the syntax guides in Canvas Help. Here is a sample question, with the variables that I seek to shuffle every time a student take the question given in the standard D2L curly brackets{}:

"Please calculate (to nearest mg) the dose required to achieve a steady-state tobramycin concentration of {Cd} one hour after the end of a 1 hour IV infusion. Assume the drug is given every 12 hours. From a previous admission, we have the following parameters, if needed.

Vbeta = {Vb} L/kg

half-life = {T} hrs

Patient current weight = {W} kg"

The formula that is being used to test the student's answer is:

{W}*{Cd}*(0.693/{T})*{Vb}*(1-e^(-0.693*12/{T}))/((1-e^(-0.693/{T}))*e^(-0.693/{T}))

which should look like:

Can anyone help with changes to my coding of the question and solution formula for CANVAS?

Thanks!

Paul

Great question!

The main difference in question formatting is that Canvas uses bracket [ ] instead of curly braces { }.

The documentation you are looking for is within each quiz question.

Choose the quiz question type of 'Formula Question'

The formula question contains the text

Question:You can define variables by typing variable names surrounded by brackets

(i.e. "What is 5 plus [x]?") Need help?.

The "Need help?" is a link to further documentation.

I hope this helps!