Documentos de Académico
Documentos de Profesional
Documentos de Cultura
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.
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