211
News / Re: Release of FormulaPro for the Nspire
« on: November 11, 2012, 10:53:16 am »
intelx86, could you try to change the following code in '1 - FPSolver.lua'
to
Try if it works with that change.
Normally that should switch the solver to the good CAS one. I should see to script something so that the CAS version get's selected when on a CAS model.
Thank's for your feedback, it's stuff like this that really help us!
Edit: nvm, I see that you tried that already.
Code: [Select]
function math.solve(formula, tosolve)
--local eq="max(exp" .. string.uchar(9654) .. "list(solve(" .. formula .. ", " .. tosolve ..")," .. tosolve .."))"
local eq = "nsolve(" .. formula .. ", " .. tosolve .. ")"
local res = tostring(math.eval(eq)):gsub(utf8(8722), "-")
--print("-", eq, math.eval(eq), tostring(math.eval(eq)), tostring(math.eval(eq)):gsub(utf8(8722), "-"))
return tonumber(res)
end
to
Code: [Select]
function math.solve(formula, tosolve)
local eq="max(exp" .. string.uchar(9654) .. "list(solve(" .. formula .. ", " .. tosolve ..")," .. tosolve .."))"
--local eq = "nsolve(" .. formula .. ", " .. tosolve .. ")"
local res = tostring(math.eval(eq)):gsub(utf8(8722), "-")
--print("-", eq, math.eval(eq), tostring(math.eval(eq)), tostring(math.eval(eq)):gsub(utf8(8722), "-"))
return tonumber(res)
end
Try if it works with that change.
Normally that should switch the solver to the good CAS one. I should see to script something so that the CAS version get's selected when on a CAS model.
Thank's for your feedback, it's stuff like this that really help us!
Edit: nvm, I see that you tried that already.