Professional Documents
Culture Documents
Inecuaciones Presicion
Inecuaciones Presicion
>> solve('x>2')
Error using solve>getEqns (line 418)
List of equations must not be empty.
ans =
>>
>> format long
>> format long 1/2 + 1/3
Error using format
Too many input arguments.
ans =
0.833333333333333
ans =
5/6
>> digits(25)
>> vpa('1/2 + 1/3')
Error using vpa (line 49)
Character vectors and strings in the first argument can only specify a variable or
number. To evaluate
character vectors and strings representing symbolic expressions, use 'str2sym'.
A =
>> S = sym(A)
S =
E =
2.7183 1.6180
1.0986 0.8241
>> sym(E)
ans =
[ 3060513257434037/1125899906842624, 910872158600853/562949953421312]
[ 2473854946935173/2251799813685248, 7423277468112251/9007199254740992]
>> vpa(S)
ans =
>> digits(25)
>> F = vpa(E)
F =
[ 2.718281828459045534884808, 1.618033988749894902525739]
[ 1.098612288668109560063613, 0.8241493563279357337236775]
>> f = sym('exp(pi*sqrt(163))')
MATLAB Command Window Page 3
12 de noviembre de 2022 09:16:14 PM
>> f = sym('exp(pi*sqrt(163))')
Error using sym>convertChar (line 1479)
Character vectors and strings in the first argument can only specify a variable or
number. To evaluate
character vectors and strings representing symbolic expressions, use 'str2sym'.
>> f=2.625374126407687e+017
f =
2.625374126407687e+17
>> vpa(f,18)
ans =
262537412640768704.0
>> vpa(f,25)
ans =
262537412640768704.0
>> vpa(f,30)
MATLAB Command Window Page 4
12 de noviembre de 2022 09:16:14 PM
ans =
262537412640768704.0
>>