Solving equations

  1. Algebraic equation:solve
    • x21=0 >>>[1,1]

      x2y2=0 >>>[y,y]

    • solve(x21=0,x) >>>[1,1]

      solve(x2y2=0,x) >>>[y,y]

      solve( 2yx=1 4yx=3 ,x,y) >>>{x:1,y:1}

  2. Ordinary differential equation:ode
    • d2fdx2+9f=0 >>>f(x)=C1*sin(3*x)+C2*cos(3*x)

    • func(f,x) ode(d2fdx2+9f,f) >>>f(x)=C1*sin(3*x)+C2*cos(3*x)

    • diff(f,x,2)+9f=0 >>>f(x)=C1*sin(3*x)+C2*cos(3*x)

  3. Partial differential equation:pde
    • 1+2fx/f+3fy/f=0 >>>f(x,y)= F(3*x-2*y)*e-2*x13-3*y13

    • func(f,x,y) pde(1+2fx/f+3fy/f) >>>f(x,y)= F(3*x-2*y)*e-2*x13-3*y13

    • 1+2*diff(f,x,1)/f+3*diff(f,y,1)/f=0 >>>f(x,y)= F(3*x-2*y)*e-2*x13-3*y13