Está en la página 1de 3

>> syms x

warning: the 'syms' function belongs to the symbolic package from Octave Forge
which you have installed but not loaded. To load the package, run `pkg
load symbolic' from the Octave prompt.

Please read `http://www.octave.org/missing.html' to learn how you can


contribute missing functionality.

error: 'syms' undefined near line 1 column 1


>> syms x
warning: the 'syms' function belongs to the symbolic package from Octave Forge
which you have installed but not loaded. To load the package, run `pkg
load symbolic' from the Octave prompt.

Please read `http://www.octave.org/missing.html' to learn how you can


contribute missing functionality.

error: 'syms' undefined near line 1 column 1


>> exit

>> pkg load symbolic


>> diary expresiones.txt
>> syms x
OctSymPy v2.6.0: this is free software without warranty, see source.
Initializing communication with SymPy using a popen2() pipe.
Using winwrapy.bat workaround for bug #43036 (Octave <= 4.0.2, on Windows)
Some output from the Python subprocess (pid 10384) might appear next.

OctSymPy: Communication established. SymPy v1.1.1.


Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)]
>> syms x
>> syms a
>> syms b
>> x=-3
x = -3
>> a=-2
a = -2
>> b=-7
b = -7
>> -2*x^2+a*x-b
ans = -5
>> syms x
>> syms a
>> syms c
>> x=-1
x = -1
>> a=49
a = 49
>> c=7
c = 7
>> 3*x^3+a*x/c+3
ans = -7
>> syms x
>> syms y
>> syms z
>> x=1/2
x = 0.50000
>> y=-3/4
y = -0.75000
>> z=5/3
z = 1.6667
>> 3/5*x^3*y^2*z
ans = 0.070312
>> format rat
>> 3/5*x^3*y^2*z
ans = 9/128
>> syms x
>> syms y
>> x=-3
x = -3
>> y=6
y = 6
>> x^-2-y^-1/y^-2+x^-1
ans = -56/9
>> (x^-2-y^-1)/y^-2+x^-1
ans = -7/3
>> (x^-2-y^-1)/(y^-2+x^-1)
ans = 2/11
>> syms p
>> syms q
>> p=-2
p = -2
>> q=1/2
q = 1/2
>> ((2*p+3)/p)*(1-2/q)/p^3+p/q
ans = -61/16
>> ((2*p+3)/p)*((1-2)/q)/(p^3)+p/q
ans = -31/8
>> ((2*p+3)/p)*((1-2)/q)/((p^3)+p/q)
ans = 1/12
>> ((2*p)+3)/p)*((1-2)/q)/((p^3)+p/q)
parse error:

syntax error

>>> ((2*p)+3)/p)*((1-2)/q)/((p^3)+p/q)
^

>> ((2*p+3)/p)*((1-2)/q)/((p^3)+p/q)
ans = 1/12
>> ((2*p+3)/p)*(1-(2/q))/((p^3)+p/q)
ans = 1/8
>> syms y
>> syms z
>> syms x
>> x=-8
x = -8
>> y=2
y = 2
>> z=1/4
z = 1/4
>> y^-2*z*x^1/3
ans = -1/6
>> y^-2*z*(x^1/3)
ans = -1/6
>> syms x
>> syms y
>> syms z
>> sqrt(2)
ans = 8119/5741
>> x= 2
x = 2
>> y=8
y = 8
>> z=-1
z = -1
>> sqrt(x)
ans = 8119/5741
>> sqrt(y)
ans = 19601/6930
>> x=2^1/2
x = 1
>> y=8^1/2
y = 4
>> z=-1
z = -1
>> 3*x^2-2*x*y+1/2*x^4*z-3/4*y^2*z^3
ans = 13/2
>> 3*(x^2)-2*x*y+1/2*(x^4)*z-3/4*(y^2)*(z^3)
ans = 13/2
>> (3*x^2)-(2*x*y)+(1/2*x^4*z)-(3/4*y^2*z^3)
ans = 13/2
>> syms n
>> n=3
n = 3
>> 2*(9*n)^1/2-5(4*n)^1/2+4*n^1/2
error: A(I): index out of bounds; value 12 out of bound 1
>> 2*9*n^1/2-54*n^1/2+4*n^1/2
ans = -48
>> syms a
>> syms b
>> a=5
a = 5
>> b=4
b = 4
>> 2*a^1/2*(4*5*a*b^1/2-5*b^1/2)
ans = 950
>> format sqrt
error: format: unrecognized format state 'sqrt'
>> format rat
>> 2*a^1/2*(4*5*a*b^1/2-5*b^1/2)
ans = 950
>> exit

También podría gustarte