how to write this equation

조회 수: 1 (최근 30일)
sri satya ravi
sri satya ravi 2016년 6월 12일
댓글: John BG 2016년 6월 14일
Can someone help me write this equation. I am having problems with a bracket somewhere.Not getting the answer i needed.
Thanks
  댓글 수: 6
sri satya ravi
sri satya ravi 2016년 6월 13일
Hi Stephen Cobeldick,
I could figure out the equation. I got the result I was expecting.
Cf = sqrt((2*gama.*(r_cfv.^((gama-1)/gama)-1))./((gama-1).*(beta^4.-r_cfv.^(-2/gama))));
Thanks for the help.
John BG
John BG 2016년 6월 14일
good, you got to the result you wanted.
The adding of .^ ./ is what I meant
Now you can throw in vectors, as long as same length, and obtain numeric results, better than working with symbolic variables.
Regards
John

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

채택된 답변

Stephen23
Stephen23 2016년 6월 12일
편집: Stephen23 2016년 6월 12일
I used y and B to make it easier to read:
num = 2*y*(r^((y-1)/y)-1)
den = (y-1)*(B^4 - r^(-2/y))
out = sqrt(num/den)
  댓글 수: 2
John BG
John BG 2016년 6월 12일
I bet Satya wants it for vectors
Stephen23
Stephen23 2016년 6월 13일
편집: Stephen23 2016년 6월 13일
Probably, but they didn't tell us which values are vectors. Probably this is a good place to start reading:

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by