Message
par compsystems » mar. nov. 13, 2018 6:18 pm
It is important to make a nested substitution to determine the exact or approximate value of the solution, without repeating the same instruction for each solution
solve(x^3-6*x^2+11*x=6,x, '=') => set[x=1,x=2,x=3]
subst(x^3-6*x^2+11*x=6,set[x=1,x=2,x=3]) => [6=6, 6=6, 6=6]
solve(1.1*x^2-65.4*x = 229.5,x,'=') => set[x = −3.32340211361,x = 62.7779475682]
subst(1.1*x^2-65.4*x = 229.5,set[x = −3.32340211361,x = 62.7779475682]) => [ 229.5 = 229.5, 229.500000003 = 229.5 ]
one could ask if the variable is repeated (left part of second arg) and then make multiple substitutions, otherwise a single substitution.