STACK

STACK

by Thor Pfosten -
Number of replies: 1


Sorry ... but I have a specific STACK question and it will be full of Germanisms ...


If you take the attachment you see a text sequence generated by STACK after a student has

finished a test. It is taken from the site that contains all the solutions to the queries. 

In case of math formulas it shows also hints how to put in the solution on the keyboard.


 A translation of the attachment graphic could be:


A correct answer is n * log 10(x) (or similar / boldly printed). It can be put in like so: n * logbase(x,10)

STACK only gets the info "n * log 10(x)" and creates  "n * logbase(x,10)".

We do not want the user to put it in like so but with the lg - convention (logarythm  base 10):

n * lg(x)


Can you tell me how to achieve that ?


Thanks a lot!


Thor










 


Attachment logarithmusformat.PNG
Average of ratings: -
In reply to Thor Pfosten

Re: STACK

by Christopher Sangwin -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Thor,

Yes, I had already noticed this.  The issue is caused by the use of an internal function "logbase", rather than the function a student types in.  This will be resolved in the next version.  There will be no need to use logbase at all.  Just use lg(x) for log to the base 10, and lg(x,n) for a general logarithm.  The "teacher's answer" as you show above, will reflect this change.

Chris