Multivariate Integral of an Array with equations

1 Ansicht (letzte 30 Tage)
Burak Kurtulan
Burak Kurtulan am 24 Dez. 2020
Bearbeitet: Burak Kurtulan am 24 Dez. 2020
I have a very complicated 1x150 array and each element has an equation which differs by k.
k is known
I have two symbols. The code is as follows:
syms phi t
k=0:149;
(tPxQ.^(1-phi)).^(k+1) .* (1-tPxQ.^(1-phi)).^(n-1-k) .* func_e
% in other words its something like this
[f1(phi,t) f2(phi,t) f3(phi,t) f4(phi,t) ...] % size of 1x150
Now, I have to integrate all components with respect to phi between [-inf,1] but t should remain as t. After that process I have to get an array like this:
[q1(t) q2(t) q3(t) q4(t) ...]
However, I have two problems here:
1) I cannot integrate upon just phi
2) I cannot integrate vector/array
Please help...
EDIT:
When I use the following code:
f(phi,t) = (tPxQ^(1-phi))^(k+1) * (1-tPxQ^(1-phi))^(n-1-k) * func_e;
Fx2 = int(f,phi,[-inf 1]);
MATLAB gives me a result but I cannot get rid of phi and it doesn't integrate at all. vpa doesn't work as well:
Fx2(t) =
int(-(408335523945051875*exp(5388777422379031/36028797018963968 - (5388777422379031*exp(t/10))/36028797018963968)^(1 - phi)*exp(-((5000*phi)/407 + 35/814)^2/2)*(exp(5388777422379031/36028797018963968 - (5388777422379031*exp(t/10))/36028797018963968)^(1 - phi) - 1)^149)/83316593106354176, phi, -Inf, 1)
>> vpa(Fx2)
ans(t) =
numeric::int(-(408335523945051875*exp(5388777422379031/36028797018963968 - (5388777422379031*exp(t/10))/36028797018963968)^(1 - phi)*exp(-((5000*phi)/407 + 35/814)^2/2)*(exp(5388777422379031/36028797018963968 - (5388777422379031*exp(t/10))/36028797018963968)^(1 - phi) - 1)^149)/83316593106354176, phi == -Inf..1)
>>
...

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by