MaplePrimes - Questions and Posts tagged with fsolve
http://www.mapleprimes.com/tags/fsolve
en-us2017 Maplesoft, A Division of Waterloo Maple Inc.Maplesoft Document SystemSun, 30 Apr 2017 16:34:22 GMTSun, 30 Apr 2017 16:34:22 GMTThe most recent questions and posts on MaplePrimes tagged with fsolvehttp://www.mapleprimes.com/images/mapleprimeswhite.jpgMaplePrimes - Questions and Posts tagged with fsolve
http://www.mapleprimes.com/tags/fsolve
fsolve in a range gives error
http://www.mapleprimes.com/questions/221687-Fsolve-In-A-Range-Gives-Error?ref=Feed:MaplePrimes:Tagged With fsolve
<p>I am trying to do fsolve in a range (-7..14), however, it gives no solution.</p>
<p>But when I solve the same equations with solve (after removing all the Imaginary solutions), I get two results, one of them is in the range (-7..14). </p>
<p>I even expanded the range of fsolve, say (-10..20), but still got no solution...</p>
<p>This is just getting weirder and weirder. Attached kindly find the Maple file, note that the first solve takes about 1 minute (on my laptop: CPU i7 + MEM 8G + SSD).</p>
<p><a href="/view.aspx?sf=221687_question/fsolve_In_Range.mw">fsolve_In_Range.mw</a></p>
<p>I am trying to do fsolve in a range (-7..14), however, it gives no solution.</p>
<p>But when I solve the same equations with solve (after removing all the Imaginary solutions), I get two results, one of them is in the range (-7..14). </p>
<p>I even expanded the range of fsolve, say (-10..20), but still got no solution...</p>
<p>This is just getting weirder and weirder. Attached kindly find the Maple file, note that the first solve takes about 1 minute (on my laptop: CPU i7 + MEM 8G + SSD).</p>
<p><a href="/view.aspx?sf=221687_question/fsolve_In_Range.mw">fsolve_In_Range.mw</a></p>
221687Thu, 13 Apr 2017 20:30:46 ZdellairdellairI'd like to have some advice to solve a non linear system of equations
http://www.mapleprimes.com/questions/221602-Id-Like-To-Have-Some-Advice-To-Solve?ref=Feed:MaplePrimes:Tagged With fsolve
<p style="margin-left: 35.4pt;">Hi everybody,<br>
<br>
I have to solve a system of 3 equations in 3 unknowns.<br>
One equation is linear while the others are not because of some sinh(cste*unknown) term.<br>
More of this the unknowns must verify some constraints of inequality type (but always very simple ; for instance “unknown <= value”).<br>
<br>
<strong>solve </strong>fails because of the sinh terms<br>
<strong>fsolve </strong>fails due to the inequalities<br>
<br>
<br>
<strong>What Maple procedure do you advise me to use to solve this system ?</strong><br>
<strong>(at this stage I think advices could be sufficient ; if I keep coming up against the problem I will submit you a more detailed question)</strong><br>
<br>
<br>
Thanks in advance<br>
<br>
</p>
<p style="margin-left: 35.4pt;">Hi everybody,<br />
<br />
I have to solve a system of 3 equations in 3 unknowns.<br />
One equation is linear while the others are not because of some sinh(cste*unknown) term.<br />
More of this the unknowns must verify some constraints of inequality type (but always very simple ; for instance “unknown <= value”).<br />
<br />
<strong>solve </strong>fails because of the sinh terms<br />
<strong>fsolve </strong>fails due to the inequalities<br />
<br />
<br />
<strong>What Maple procedure do you advise me to use to solve this system ?</strong><br />
<strong>(at this stage I think advices could be sufficient ; if I keep coming up against the problem I will submit you a more detailed question)</strong><br />
<br />
<br />
Thanks in advance<br />
<br />
</p>
221602Mon, 03 Apr 2017 13:18:08 Zsand15sand15How to find equation of the intersection between two spheres and plot it?
http://www.mapleprimes.com/questions/221550-How-To-Find-Equation-Of-The--Intersection?ref=Feed:MaplePrimes:Tagged With fsolve
<p>With the following command I can plot two spheres and plot them.</p>
<p><span style="font-size:10px;"><span style="font-family: courier new,courier,monospace;">f1 := x^2+y^2+z^2 = 1</span></span></p>
<p><span style="font-size:10px;"><span style="font-family: courier new,courier,monospace;">f2 := x+y+z = 1</span></span></p>
<p><span style="font-size:10px;"><span style="font-family: courier new,courier,monospace;">with(plottools);</span></span></p>
<p><span style="font-size:10px;"><span style="font-family: courier new,courier,monospace;">with(plots);</span></span></p>
<p><span style="font-size:10px;"><span style="font-family: courier new,courier,monospace;">S1 := implicitplot3d(f1, x = -1 .. 1, y = -1 .. 1, z = -1 .. 1, style = patchnogrid, color = blue, scaling = constrained, axes = boxed)</span></span></p>
<p><span style="font-size:10px;"><span style="font-family: courier new,courier,monospace;">S2 := implicitplot3d(f2, x = -1 .. 1, y = -1 .. 1, z = -1 .. 1, style = patchnogrid, color = gold, scaling = constrained, axes = boxed)</span></span></p>
<p><span style="font-size:10px;"><span style="font-family: courier new,courier,monospace;">dispaly(S1,S2)</span></span></p>
<p>My questions are:</p>
<p>1- How can I display (highlight) the circle which is the intersection between these two sphere on the same figure?</p>
<p>2- How can I find the equation of this circle?</p>
<p>Thank you.</p>
<p>With the following command I can plot two spheres and plot them.</p>
<p><span style="font-size:10px;"><span style="font-family: courier new,courier,monospace;">f1 := x^2+y^2+z^2 = 1</span></span></p>
<p><span style="font-size:10px;"><span style="font-family: courier new,courier,monospace;">f2 := x+y+z = 1</span></span></p>
<p><span style="font-size:10px;"><span style="font-family: courier new,courier,monospace;">with(plottools);</span></span></p>
<p><span style="font-size:10px;"><span style="font-family: courier new,courier,monospace;">with(plots);</span></span></p>
<p><span style="font-size:10px;"><span style="font-family: courier new,courier,monospace;">S1 := implicitplot3d(f1, x = -1 .. 1, y = -1 .. 1, z = -1 .. 1, style = patchnogrid, color = blue, scaling = constrained, axes = boxed)</span></span></p>
<p><span style="font-size:10px;"><span style="font-family: courier new,courier,monospace;">S2 := implicitplot3d(f2, x = -1 .. 1, y = -1 .. 1, z = -1 .. 1, style = patchnogrid, color = gold, scaling = constrained, axes = boxed)</span></span></p>
<p><span style="font-size:10px;"><span style="font-family: courier new,courier,monospace;">dispaly(S1,S2)</span></span></p>
<p>My questions are:</p>
<p>1- How can I display (highlight) the circle which is the intersection between these two sphere on the same figure?</p>
<p>2- How can I find the equation of this circle?</p>
<p>Thank you.</p>
221550Tue, 28 Mar 2017 08:54:34 ZSuySuyplot of system of equations
http://www.mapleprimes.com/questions/221497-Plot-Of-System-Of-Equations?ref=Feed:MaplePrimes:Tagged With fsolve
<p>Hi</p>
<p> </p>
<p>I have a system of equations (4) which I would like to plot in regards to a fifth variable. Is there a good way to do this. Some of the solutions would end up as negative values, which is not an option I am interested in having.</p>
<p> </p>
<p>C__A is my variable, and the other variables I would like to solve are tau,C__B,C__C,C__D. Im specifically interested in tau with regards to C__A. I hope this makes sense :)</p>
<p>regards</p>
<p> </p>
<p>C__A := .75;<br>
0.75</p>
<p><br>
a := tau = (C__A0-C__A)/(-r__A);<br>
0.75 <br>
tau = - ------------------------------------------------<br>
2 <br>
-0.00900 C__B + 0.03500000000 C__C - 0.075 C__C<br>
b := tau = (C__B0-C__B)/(-r__B);<br>
2 - C__B <br>
tau = - -----------------------------------<br>
2<br>
-0.00900 C__B + 0.03500000000 C__C <br>
c := tau = (C__C0-C__C)/(-r__C);<br>
C__C <br>
tau = ---------------------------------------<br>
2 <br>
0.01800 C__B - 0.070 C__C - 0.075 C__C<br>
d := tau = (C__D0-C__D)/(-r__D);<br>
13.33333333 C__D<br>
tau = ----------------<br>
C__C <br>
sol := fsolve([a, b, c, d], {C__B = 1, C__C = .2, C__D = .2, tau = 50});</p>
<p>{C__B = 1.673672109, C__C = 0.2289836744, C__D = 0.4236721086, </p>
<p> tau = 24.66971264}</p>
<p>Hi</p>
<p> </p>
<p>I have a system of equations (4) which I would like to plot in regards to a fifth variable. Is there a good way to do this. Some of the solutions would end up as negative values, which is not an option I am interested in having.</p>
<p> </p>
<p>C__A is my variable, and the other variables I would like to solve are tau,C__B,C__C,C__D. Im specifically interested in tau with regards to C__A. I hope this makes sense :)</p>
<p>regards</p>
<p> </p>
<p>C__A := .75;<br />
0.75</p>
<p><br />
a := tau = (C__A0-C__A)/(-r__A);<br />
0.75 <br />
tau = - ------------------------------------------------<br />
2 <br />
-0.00900 C__B + 0.03500000000 C__C - 0.075 C__C<br />
b := tau = (C__B0-C__B)/(-r__B);<br />
2 - C__B <br />
tau = - -----------------------------------<br />
2<br />
-0.00900 C__B + 0.03500000000 C__C <br />
c := tau = (C__C0-C__C)/(-r__C);<br />
C__C <br />
tau = ---------------------------------------<br />
2 <br />
0.01800 C__B - 0.070 C__C - 0.075 C__C<br />
d := tau = (C__D0-C__D)/(-r__D);<br />
13.33333333 C__D<br />
tau = ----------------<br />
C__C <br />
sol := fsolve([a, b, c, d], {C__B = 1, C__C = .2, C__D = .2, tau = 50});</p>
<p>{C__B = 1.673672109, C__C = 0.2289836744, C__D = 0.4236721086, </p>
<p> tau = 24.66971264}</p>
221497Mon, 20 Mar 2017 13:51:05 Zbogus5331bogus5331solve with a variable or fsolve without variable
http://www.mapleprimes.com/questions/221436-Solve-With-A-Variable-Or-Fsolve-Without-Variable?ref=Feed:MaplePrimes:Tagged With fsolve
<p> </p>
<p>I've encountered a very strange issue with Maple.</p>
<p>The result returns differently with solve and fsolve after/before a variable is given a certain value. See attachment.</p>
<p>The result comes from solve (with variable epsilon) returns value of the same variable with imaginary part while the fsolve returns the correct answer.</p>
<p>Now how can I achieve the same result as fsolve via solve?</p>
<p>Thanks!</p>
<p><a href="/view.aspx?sf=221436_question/Maple_Question_Solve_Fsolve.mw">Maple_Question_Solve_Fsolve.mw</a></p>
<p><a href="/view.aspx?sf=221436_question/Maple_Question_Solve_Fsolve.pdf">Maple_Question_Solve_Fsolve.pdf</a> (exported PDF from Maple)</p>
<p> </p>
<p>I've encountered a very strange issue with Maple.</p>
<p>The result returns differently with solve and fsolve after/before a variable is given a certain value. See attachment.</p>
<p>The result comes from solve (with variable epsilon) returns value of the same variable with imaginary part while the fsolve returns the correct answer.</p>
<p>Now how can I achieve the same result as fsolve via solve?</p>
<p>Thanks!</p>
<p><a href="/view.aspx?sf=221436_question/Maple_Question_Solve_Fsolve.mw">Maple_Question_Solve_Fsolve.mw</a></p>
<p><a href="/view.aspx?sf=221436_question/Maple_Question_Solve_Fsolve.pdf">Maple_Question_Solve_Fsolve.pdf</a> (exported PDF from Maple)</p>
221436Sun, 12 Mar 2017 19:07:06 Zdellairdellairtrouble using fsolve. Different solver needed?
http://www.mapleprimes.com/questions/221378-Trouble-Using-Fsolve-Different-Solver-Needed?ref=Feed:MaplePrimes:Tagged With fsolve
<p>I have trouble solving this equation</p>
<p> </p>
<p>fsolve(5000 = int(1/(0.1060444429e-1-0.2120888857e-1*X+0.1033933318e-1*X^2), X = 0 .. x), x)</p>
<p>It has a few points where the solution will go towards infinite, but that is not something that is an issue normally. I have no problems what so ever to solve this using my trusty TI-89, so Im wondering what needs to be done to actually solve this. I have tried giving an initial guess, and I have tried using solve, but it doesnt seem to do the trick.</p>
<p> </p>
<p>Regards</p>
<p> </p>
<p>I have trouble solving this equation</p>
<p> </p>
<p>fsolve(5000 = int(1/(0.1060444429e-1-0.2120888857e-1*X+0.1033933318e-1*X^2), X = 0 .. x), x)</p>
<p>It has a few points where the solution will go towards infinite, but that is not something that is an issue normally. I have no problems what so ever to solve this using my trusty TI-89, so Im wondering what needs to be done to actually solve this. I have tried giving an initial guess, and I have tried using solve, but it doesnt seem to do the trick.</p>
<p> </p>
<p>Regards</p>
<p> </p>
221378Mon, 06 Mar 2017 11:55:13 Zbogus5331bogus5331