The problems when 'solve' using MAPLE

13 views (last 30 days)
seon-hong
seon-hong on 6 Aug 2014
When I solve some equations using MATLAB R2013a solver, there was just warning massage without solution.
So, I purchase MAPLE 18 to solve this problem and replace MATLAB solver to MAPLE solver. The problems are written as follows.
EX) a*(1+t)*sqrt(log(1/t)/t)/t - b % a, b are the variables in MATLAB % t is the solution
Here's my code for solving this problem
maple(['a:=' num2str(matval1)]);
maple(['b:=' num2str(matval2)]);
maple('solve(a*(1+t)*sqrt(log(1/t)/t)/t - b ) ');
But there is warning sign AGAIN!
Warning, solve may be ignoring assumptions on the input variables.
The calculation time is not that fast and even the time is getting longer as I RUN the code.
Help me...

Answers (1)

Michael Haderlein
Michael Haderlein on 6 Aug 2014
Well, I don't believe that there exists an explicit solution of this problem. So most likely, you have to be happy with a numeric solution. fzero has trouble solving this equation, but fsolve makes it:
a=1;b=2;
fsolve(@(t) a*(1+t)*sqrt(log(1/t)/t)/t - b ,.1)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!