jsMath



            CM 1.0 Geometry2 MrG 20110913
factor(x^2-9)

     (x−3)(x+3)
expand((x-3)*(x+3))

     x2−9
solve(x^2-9==0,x)

     [x=(−3),x=3]
plot(x^2-9,xmin=-4,xmax=4)




factor(x^3-8)
   (x - 2)*(x^2 + 2*x + 4)
factor(x^3+8)
   (x + 2)*(x^2 - 2*x + 4)
factor(27*x^3-64)
   (3*x - 4)*(9*x^2 + 12*x + 16)
solve(27*x^3-64==0,x)

     [x= i√3−
         32               √3−32,x=(34)]
                  32,x=−32i
l=solve(27*x^3-64==0,x) for i in range(3): l[i].rhs().n()
   -0.666666666666667 + 1.15470053837925*I
   -0.666666666666667 - 1.15470053837925*I
   1.33333333333333
plot(27*x^3-64,xmin=-2,xmax=5)




f(x)=-2*x+100 g(x)=-x+75 solve(f(x)==g(x),x)
   [x=25]
f(25)
   50
g(25)
   50
var('y') solve([y==-2*x+100, y==-x+75],x,y)
   [[x=25,y=50]]
plot([-2*x+100, -
x+75],xmin=0,xmax=50,ymin=0,ymax=70,fill='max')
(sphere(center=(-
1,0,0))+sphere(center=(1,0,0))).show(viewer='tachyon',aspect_rat
io=1)
CM 1.0 geometry2 MrG 20110913  - sage

CM 1.0 geometry2 MrG 20110913 - sage

  • 1.
    jsMath CM 1.0 Geometry2 MrG 20110913 factor(x^2-9) (x−3)(x+3) expand((x-3)*(x+3)) x2−9 solve(x^2-9==0,x) [x=(−3),x=3] plot(x^2-9,xmin=-4,xmax=4) factor(x^3-8) (x - 2)*(x^2 + 2*x + 4) factor(x^3+8) (x + 2)*(x^2 - 2*x + 4) factor(27*x^3-64) (3*x - 4)*(9*x^2 + 12*x + 16) solve(27*x^3-64==0,x) [x= i√3− 32 √3−32,x=(34)] 32,x=−32i
  • 2.
    l=solve(27*x^3-64==0,x) for iin range(3): l[i].rhs().n() -0.666666666666667 + 1.15470053837925*I -0.666666666666667 - 1.15470053837925*I 1.33333333333333 plot(27*x^3-64,xmin=-2,xmax=5) f(x)=-2*x+100 g(x)=-x+75 solve(f(x)==g(x),x) [x=25] f(25) 50 g(25) 50 var('y') solve([y==-2*x+100, y==-x+75],x,y) [[x=25,y=50]] plot([-2*x+100, - x+75],xmin=0,xmax=50,ymin=0,ymax=70,fill='max')
  • 3.