Definite intergral with one variable trying to solve for constant
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Tanay Manoj Vaghadia
il 4 Gen 2021
Modificato: Steven Lord
il 4 Gen 2021
The problem is i have this definite integral which i need to integrate and then solve for P:
F = P*x^2-5000*x^3/((x/26 + 1/10)^3/300 - (x/26 + 23/250)^3/375)
between the limits of 0 and 2.6 but i am unsure on how to get it to solve for P.
syms x P
F = P*x^2-5000*x^3/((x/26 + 1/10)^3/300 - (x/26 + 23/250)^3/375);
Fint = int(F, x, 0, 2.6)
So, integrate the function between 0 and 2.6 with x being the varible to get an answer for P?
Any help will be much apprieciated
0 Commenti
Risposta accettata
Star Strider
il 4 Gen 2021
There is no closed-form, analytic expression fot the integral. In order to solve for the value of ‘P’, it will be necessary to know the value of the integral.
This assumes that the value of the integral is 0:
syms x P
F = P*x^2-5000*x^3/((x/26 + 1/10)^3/300 - (x/26 + 23/250)^3/375);
Fint = int(F, x, 0, 2.6);
P = solve(Fint,P) % Assumes Value Of The Integral Is 0
producing:
P =
1742302746.6832036018225596059422
.
3 Commenti
Star Strider
il 4 Gen 2021
Our pleasure!
John — Thank you!
‘... i would assume its something with the equation?’
Quite possibly.
Più risposte (1)
Steven Lord
il 4 Gen 2021
Modificato: Steven Lord
il 4 Gen 2021
Let's look at what your function looks like on the interval [0, 2.6] when P is 8000.
F = @(x, P) P*x.^2-5000*x.^3./((x/26 + 1/10).^3/300 - (x/26 + 23/250).^3/375);
fplot(@(x) F(x, 8000), [0, 2.6])
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!