Message Boards Message Boards

1
|
7184 Views
|
3 Replies
|
7 Total Likes
View groups...
Share
Share this post:

Solve or NSolve doesn't give any solution in twelve hours

Posted 10 years ago
I typed 

NSolve[((900/454) (1816000 E^(-200 t/681) (-1 + E^(1782 t/6583)))/
    2673) <= 50, t]

with an equality (50) or inequality (<=50), with Solve or NSolve, and wihin 12 hours I don't get a solution.

What is wrong ?

bilik.miloslav@wanadoo.fr
POSTED BY: bilik.miloslav
3 Replies
FindRoot[((900/454) (1816000 E^(-200 t/681) (-1 + E^(1782 t/6583)))/
     2673) == 50, {t, 1}]
{t -> 0.140216}
returns almost immediately.  Since there are mulitple solutions, the one that you get will depend on the starting value you give to FindRoot.
POSTED BY: Frank Kampas
NSolve[((900/454) (1816000 E^(-200 t/681) (-1 + E^(1782 t/6583)))/2673) == 50, t, Reals]
(*{{t -> 0.1402163037}, {t -> 143.2657137}}*)
Took about 40 seconds on my PC.

For inequality, one is supposed to use Reduce[]. But it was taking long time on my end. You can also use FindInstance if you just want one solution:
FindInstance[((900/454) (1816000 E^(-200 t/681) (-1 + E^(1782 t/6583)))/2673) <= 50, t]
(* {{t -> 0}} *)
POSTED BY: Nasser M. Abbasi
Posted 10 years ago
Many thanks, adding "Reals" solves the problem. I don't know Reduce or FindInstance and I will look, thx again for your hints.
POSTED BY: bilik.miloslav
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract