Square CoCalc Logo
FeaturesSoftwarePricingInfoPoliciesShareSupport Try Sign InSign Up
Path: support / 2014-11-30-solve.sagews
Description:

Examples for support purposes.

Views: 1079171
License: GPL3
Image: ubuntu2004-dev
Project: Support and Testing
Raw | Embed | Download |
solve(x^3 - 4*x^2 + 6*x -24 == 0,x)
[x == -I*sqrt(6), x == I*sqrt(6), x == 4]
show(solve(x^3 - 4*x^2 + 6*x -24 == 0,x))
[x=i6,x=i6,x=4]\left[x = -i \, \sqrt{6}, x = i \, \sqrt{6}, x = 4\right]
import sympy x = sympy.var('x') sympy.solve(x^3 - 4*x^2 + 6*x - 24,x)
[4, -sqrt(6)*I, sqrt(6)*I]