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 个评论
madhan ravi
2018-10-16
what have tried so far?? upload your code
Debasis Roy
2018-10-16
Walter Roberson
2018-10-16
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.
Abdul Rehman
2018-10-24
编辑:Abdul Rehman
2018-10-24
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:
Debasis Roy
2018-10-24
Walter Roberson
2018-10-24
"function" is a reserved word, so you would need to use a different variable name.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Common Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!