Formula in string

Formula in string

by Miguel Bejarano -
Number of replies: 0

Hi everybody

I think this is a common problem, so maybe you have a reference to another forum.

I have to get a formula, for example: 

\( \sqrt[]{ \frac{a}{b} } \)

but this formula is created in a string; like 

join("","\( \sqrt[]{ \frac{",a,"}{",b,"}} \)");

I am working with Formulas Question Type, but I suppose it is similar in several activities.

Can you help me?  

(Moodle 3.8 with softacolous)

Average of ratings: -