Can someone help me write this equation. I am having problems with a bracket somewhere.Not getting the answer i needed.
Thanks

6 件のコメント

Stephen23
Stephen23 2016 年 6 月 12 日
@sri satya ravi: please edit your question and show us the code that you wrote.
sri satya ravi
sri satya ravi 2016 年 6 月 12 日
Cf = sqrt((2*gama*(r_cfv^((gama-1)/gama)-1))./(gama-1)*(beta^4-r_cfv^(-2/gama)))
Ndotref = 57.625; Z = 1; M_mix = 0.0287805; R = 8.314472; Venturi_Temp = 298.15; At = 0.01824; Venturi_pressure = 99132; gama = 1.399; beta = 0.8; r_cfv = 0.977;
the answer i am expecting for Cf is something close to 0.274.
John BG
John BG 2016 年 6 月 12 日
Satya
is it possible to define vectors for r beta gamma?
sri satya ravi
sri satya ravi 2016 年 6 月 13 日
Hi John,
I was just wondering why there is a need to define those constant values as vectors?
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 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

タグ

質問済み:

2016 年 6 月 12 日

コメント済み:

2016 年 6 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by