How to write a matlab code for this equation?

Respuestas (1)

Luca Ferro
Luca Ferro el 6 de En. de 2023
Editada: Luca Ferro el 6 de En. de 2023

0 votos

Fi= @(I) ((2*(alpha*beta)^((alpha+beta)/2))/T(alpha)*T(beta))*(I^(alpha+beta))*K*2*sqrt(alpha*beta*I);
if you want to show alpha and beta as symbols in the workspace you can go for something like (see here):
alpha=evalin(symengine,'`α`');
Since you didn't specify anything i interpreted T as a function. You will need to define it as well.

4 comentarios

John D'Errico
John D'Errico el 6 de En. de 2023
Editada: John D'Errico el 6 de En. de 2023
I woud guess that K may also be a function, as putting parens around what follows makes little sense otherwise, and the sqrt(alpha*beta) term might have then been absorbed into a previous term. As well, the 2 would become a 4 in front of the entire expression, combining with the other 2. Even that sqrt(I) term could then be absorbed into a previous term.
For all of those reasons, I am pretty confident that K is in fact a function, unsupplied, but still a function.
Torsten
Torsten el 6 de En. de 2023
... same for T.
yeah you are definetly right about K, it is indeed a function for sure, i just didn't notice. This should be correct now:
Fi= @(I) ((2*(alpha*beta)^((alpha+beta)/2))/T(alpha)*T(beta))*(I^(alpha+beta))*K(2*sqrt(alpha*beta*I));
Walter Roberson
Walter Roberson el 9 de En. de 2023
Editada: Walter Roberson el 9 de En. de 2023
https://en.m.wikipedia.org/wiki/K-function ? Or is it https://www.mathworks.com/help/matlab/ref/besselk.html ?

Iniciar sesión para comentar.

Categorías

Más información sobre Data Type Identification en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 5 de En. de 2023

Editada:

el 9 de En. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by