need a help doing simple code
Afficher commentaires plus anciens
Hello guys. I have some problem in below code.
First of all I want to input 4 variables(W, L, H, R).
And then q,a,b are defined as below.
q=H/L, a=W/q, b=(W*(1-R)/(2*q));
And then fuction f(X), g(X), h(x), p(x) are defined as below
f(x)=sqrt(a*x+b^2)-x-b
h(x)=W*0.9-x;
and the intersection of f(x) and h(x) is defined as (m,n)
and then g(x)=f(t)/t*x , (t,f(t)) is a point on the f(x)
p(x)=(f(t)-n)/(t-m)*(x-m)+n
now, A(t) is defined as below.
A(t)=integral of (f(x)-g(x)) at (0<x<t) + integral of (f(x)-p(x)) at (t<x<m)
and I want to show the value of t when A'(t)=0
Can you guy help me...?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Operations on Strings dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!