# declare symbolic variables syms a b c x y = a*x^2 + b*x + c soln = solve(y == 0, x); # solve for specific values ysoln = subs(soln, [a,b,c],[3,2,-6]) ysoln = simplify(ysoln); # get decimal number with 9 digits vpa(ysoln, 9)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter