Filter löschen
Filter löschen

Matlab code to solve an integral

3 Ansichten (letzte 30 Tage)
Marina Gonzalez
Marina Gonzalez am 15 Jun. 2019
Bearbeitet: KALYAN ACHARJYA am 15 Jun. 2019
Hello! I need some help with Matlab.
I would like to solve and plot the following function:
kjb.PNG
I know everything except for W and x. I want to plot x vs. W, and the values of x should go from 0 to 1.
kw = 91371;
Ca0 = 1.81 * 10 ^ -4;
Fa0 = 0.1233;
K = 2;
Thank you in advance.
  1 Kommentar
Walter Roberson
Walter Roberson am 15 Jun. 2019
The value of the expression goes to infinity as x approaches 1, and the integral does as well. The integral is
(4116815215161981957*A)/1525375194746818396160000 - (2711395674095616*log(1 - A))/363677786528305625

Melden Sie sich an, um zu kommentieren.

Antworten (1)

KALYAN ACHARJYA
KALYAN ACHARJYA am 15 Jun. 2019
Bearbeitet: KALYAN ACHARJYA am 15 Jun. 2019
#Edited
syms x
kw = 91371;
CaO= 1.81 * 10 ^ -4;
FaO= 0.1233;
K = 2;
fun = (FaO*(1+(K*CaO)*(1-x)))/(kw*CaO*(1-x))
int(fun)
  4 Kommentare
Walter Roberson
Walter Roberson am 15 Jun. 2019
This is incorrect code. The 1+ K*Ca0 is not being multiplied by (1-x) in the original formula: it is 1 + (K*Ca0)*(1-x) .
KALYAN ACHARJYA
KALYAN ACHARJYA am 15 Jun. 2019
@Walter Yes, Edited Thanks sir

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by