필터 지우기
필터 지우기

solve symbolic function - I get non-simplified term

조회 수: 3 (최근 30일)
Mehdi
Mehdi 2015년 9월 7일
댓글: Star Strider 2015년 9월 7일
Hi,
I use syms X, Y, Z to solve for the jacobian of a matrix Xn and then plug in the values for X, Y, Z (1.5, 2.2, 8) but what I get is a non-simplified term: (719*29041^(1/2)*(1141^(1/2)/100 - 105/5629))/559 How can I programamtically calculate this term without going to command window copy and paste back to command window to get 69.951? My HW is due soon so I need your prompt response. Thank you very much for your help.

채택된 답변

Star Strider
Star Strider 2015년 9월 7일
Use the vpa function:
Q = vpa((719*29041^(1/2)*(1141^(1/2)/100 - 105/5629))/559, 5)
Q =
69.951
  댓글 수: 3
Mehdi
Mehdi 2015년 9월 7일
I can't thank you enough sir.
Star Strider
Star Strider 2015년 9월 7일
My (our) pleasure!

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

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by