hello. I have a problem when a try solve exp(1/x)=b equation where b is a known number. for example vpasolve(exp(1/x)==3,x) the result is -1.0787658120660760897089735826813e186744862 that's clearly wrong. please help me

 채택된 답변

Walter Roberson
Walter Roberson 2018년 4월 13일
편집: Walter Roberson 2018년 4월 13일

0 개 추천

You are right, I am seeing the same thing, but different results.
-2.9994493695148696857379250512264623387666217934763e178433142
I will file a bug report... filed.

추가 답변 (1개)

James Tursa
James Tursa 2018년 4월 13일
편집: James Tursa 2018년 4월 13일

0 개 추천

Why not solve it directly:
x = 1./log(b)
What's the point of using vpasolve for this?

댓글 수: 1

Jose Fernandez
Jose Fernandez 2018년 4월 14일
because the equation that i want solve is exp(-(3.14*ra)/x)+exp(-(3.14*rb)/x)=1 and in this case i cant apply log to solve. but i realize a change of variable x=1/y to solve getting good results. thanks

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2018년 4월 13일

댓글:

2018년 4월 14일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by