Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168732
Image: ubuntu2004
solve(3*x +4 == -8*x-5, x) #means solve(your equation, for variable x) SAGE must know which variable you want to solve it for #if your equation is changed to 3*x +4 == -8*y-5, see what happens if you ask SAGE to solve for x #and then for y. don't forget to properly declare x and y first before you do this! #See original worksheet
[x == (-9/11)]
solve(3/x +4 == -8*x-5, x)
[x == -1/16*I*sqrt(15) - 9/16, x == 1/16*I*sqrt(15) - 9/16]
show(_) #show in a prettier format
\newcommand{\Bold}[1]{\mathbf{#1}}\left[x = -\frac{1}{16} i \, \sqrt{15} - \frac{9}{16}, x = \frac{1}{16} i \, \sqrt{15} - \frac{9}{16}\right]
solve(3/x == 12/5,x)
[x == (5/4)]
p(x)=2*x^2 + 3*x + 4 #assign expression to p(x), say a polynomial expression q(x)=-2*x^2 show(p(x)) #I want to see if I typed it correctly; show in prettier format show(q(x))
\newcommand{\Bold}[1]{\mathbf{#1}}2 \, x^{2} + 3 \, x + 4
\newcommand{\Bold}[1]{\mathbf{#1}}-2 \, x^{2}
a=solve(p(x)==q(x), x) #the equation is p(x)==q(x). solve for x. assign result to "a" just so I can "show" it below. #this way all you need is to just change p(x) and q(x) show(a)
\newcommand{\Bold}[1]{\mathbf{#1}}\left[x = -\frac{1}{8} i \, \sqrt{55} - \frac{3}{8}, x = \frac{1}{8} i \, \sqrt{55} - \frac{3}{8}\right]