complex algorithms for calculated questions

complex algorithms for calculated questions

by david benedetto -
Number of replies: 2

i would like to create calculated questions that generate 2 numbers and calculates the GCF & LCM.  can this be done in the 1 line for the answer?

i can do this easily enough in a computer language but i am not familiar with the grammar & syntax of tex or algebra in moodle.

i'm using ver 1.9.7

Average of ratings: -
In reply to david benedetto

Re: complex algorithms for calculated questions

by Pierre Pichet -

The actual code allows you to an answer that can be calculated  in a one line equation using the available PHP math functions (see the docs).

If you have acces to the site as an administrator see the plugin

Question Type: Calculated (extended)

Pierre Pichet

P.S. there is an issue ( MDL-7198) to insert more complex functions in regular calculated when the new engine question code will be completed (hopefully 2.1).