Info
This question is closed. Reopen it to edit or answer.
About Symbolic computing
2 views (last 30 days)
Show older comments
Hi,
In the process of solving a research problem, I met a problem. Can I use symbolic programs and numerical programs in one M file?
Because there is an integral with a parameter which is a function of the independent variable. This is multiperiod or dynamic problem. For some given time, the problem needs to solve the following,
y(lambda)=max(-log(0.525*lambda)^(1/2), y*), where y* satisfies (1+0.02*exp(5*y))*lambda*0.5*exp(2*y)=1.
And the equation with integral solves for lambda,
lambda^(-1)+int(0.5*exp(2*x)*{(0.525*lambda*exp(2*x))^(-1)-1}, 0.1833, y(lambda))=1
The expression in "int" stands for the integral.
Please help me out.
0 Comments
Answers (1)
Walter Roberson
on 14 Nov 2011
Symbolic computing is possible in MATLAB if you use the Symbolic Toolkit.
For about the last 3 years, the Symbolic Toolkit has been based upon MuPAD, which Mathworks bought out.
Before that, the Symbolic Toolkit was Maplesoft's Maple but with a slimmed down library. There was, in those days, also an Extended Symbolic Toolbox available that gave access to all of Maple.
I have used Maple fairly extensively over the years, and know my way around it. MuPAD has a lot of similarities to Maple in some ways, but some of the internal mechanisms are handled fairly differently in MuPAD and the library is fairly different. There are some constructs that were easy in Maple that appear to be long and twisted in MuPad, but it appears that MuPad has advantages in some areas.
Unfortunately, at least until fairly new versions (I am not sure when), one of the real annoyances with MuPAD in practice, was its reluctance to solve polynomials of order 3 or higher, often claiming there was no solution findable for polynomials that turned out to be fairly readily factored.
1 Comment
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!