Question: C Code Generation of procedure involving commands like 'Solve'

GCD := proc (a, b) local sol, x, y, eqs, vars; vars := [x, y]; eqs := [Typesetting:-delayDotProduct(cos(x), sin(y)) = 0, y+sin(x) = b]; sol := solve(eqs, vars); sol end proc

I tried to convert this code into C, using C(GCD) and got an error message that target language may not recognize commands like solve etc., which is obvious. Please let me know if there is any way to convert procedures involving such commands into C code.

Please Wait...