Help me get a numeric answer please. I have a symbolic answer for x but just want a number. Conversion with double(x) doesn't work???
조회 수: 3 (최근 30일)
이전 댓글 표시
The code I type is:
evalin(symengine,... ['numeric::solve(tan(pi*x/180)'... '+tan(((4000-2672)/2672)*pi*x/180)==626/(1300))'])
I get the answer:
ans =
[x == 17.971555160137556933421078470028]
I type:
double(x)
I get the answer:
Error in MuPAD command: DOUBLE cannot convert the input expression into a double array.
If the input expression contains a symbolic variable, use the VPA function instead.
Error in sym/double (line 710) Xstr = mupadmex('symobj::double', S.s, 0);
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2013년 9월 6일
a=evalin(symengine,...
['numeric::solve(tan(pi*x/180)'...
'+tan(((4000-2672)/2672)*pi*x/180)==626/(1300))'])
out=double(solve(a))
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!