HOW TO WRITE PROGRAMME THIS FOR SOLVING THIS TYPE COMPLEX EQUATION?

SIR PLEASE HELP ME TO SOLVE THIS TYPE OF COMPLEX EQUATION . I HAVE ATTACHED ONE FILE. PLEASE REPLY SIR

6 个评论

what have tried so far?? upload your code

SIR I AM NOW LEARNING MATLAB. THATS WHY I AM ASKING HOW TO WRITE.I HAVE SEEN VIDEOS BUT IT IS NOT SO COMPLEX IN VIDEOS. SO I AM ASKING FOR HELP

First, work out a naming convention to use, so that you can be consistent in how you name psi subscript 2, or omega superscript plus subscript 2,1 . Decide, for example, whether you are going to spell out kappa or if you are going to use k . The exact naming convention that you use is not important, as long as the result works with MATLAB's variable name restrictions (must begin with a letter, after which you can use letters, digits, and underscore), and as long as it can be easily understood by people reading your code. And be consistent: for example if chi appears in a subscript, do not use a different way of spelling it compared to if chi appears as a main variable.
Secondly: investigate whether those square [] in the equations are just grouping of expressions, or if instead they represent "take the integer part" . If they do represent "take the integer part", find out whether it is a floor() or ceil() or fix() operator that is intended.
Thirdly: start typing, remembering that MATLAB does not have implicit multiplication . You should probably write using the .* operator for multiplication and the ./ operator for division.
Basically if you can code this,
%basic function
function_1=P(h-y)+T.*exp(-k.*y);
%Apply squareroot
f_1=sqrt(function_1);
int=integral(f_1);
end
hopefully you get it.
Link are provided if u get any problem to perform integration and square root
intgration:
Squareroot:
Exponential:
No sir this is not coming.Error function define are not permitted .When I written fun then it said define P
"function" is a reserved word, so you would need to use a different variable name.

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by