How to write this equation into code?
Mostrar comentarios más antiguos

I currently have it in this form and I am getting a weird answer:
eqn3 = ((Ac*Pul)/(alpha*CF*miu))*((((Rm*Ac)/(alpha*CF))^2)+(((2*Ac)/(alpha*CF))*((Rm*Vcf)+((alpha*CF*(Vcf^2))/(2*Ac))+((Ac*Pul*(t-tcf))/miu))))^-(1/2) == Vt2;
Respuestas (1)
KSSV
el 4 de Mayo de 2018
When you have such a complex equation......it is confusing to type whole equation at once......try to type term by term and then see the answer.
T1 = Ac*Pul/(alpha*CF*mu) ;
T2 = (Rm*Ac/(alpha*CF))^2 ;
T3 = (2*Ac/(alpha*CF))*(Rm*VCF+(alpha*VCF^2)/(2*Ac)+(Ac*Pul*(t-tCF)/mu)) ;
J = T1*(T2+T3)^(-1/2) ;
3 comentarios
Bryan Lee
el 4 de Mayo de 2018
Image Analyst
el 4 de Mayo de 2018
We can't do much else until you do. The formula looks correct. Give values for all the variable, and your expected answer that is known to be correct.
Bryan Lee
el 4 de Mayo de 2018
Editada: Walter Roberson
el 5 de Mayo de 2018
Categorías
Más información sobre Numeric Solvers en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!