Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Veldirn  
#1 Posted : 27 October 2015 12:13:44(UTC)
Veldirn

Rank: Newbie

Groups: Registered
Joined: 26/10/2015(UTC)
Posts: 4
Poland

Is there way to detect that function gives error, or more accurately when Solve() gives "No real roots" error?

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 27 October 2015 19:16:14(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Veldirn Go to Quoted Post
Is there way to detect that function gives error, or more accurately when Solve() gives "No real roots" error?


_________________________________

Most likely that is because your solve range does not bracket the
function crossing Xaxis. Before solving, always plot.
Don't be shy, attach the work sheet, just minute job to tutor it back.

Jean
Offline Veldirn  
#3 Posted : 28 October 2015 09:23:49(UTC)
Veldirn

Rank: Newbie

Groups: Registered
Joined: 26/10/2015(UTC)
Posts: 4
Poland

I think you don't understand what I wish to know. Let me rephrase my question is: is there a way to detect that two functions are NOT CROSSING without error. I was thinking maybe there is a function that detects errors so I could write something like: If_Error(Solve(f1(x);f2(x),x))= 1 if f1 and f2 are not crossing.

Edited by user 28 October 2015 09:25:38(UTC)  | Reason: Not specified

Offline Jean Giraud  
#4 Posted : 29 October 2015 05:39:42(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Veldirn Go to Quoted Post
I think you don't understand what I wish to know. Let me rephrase my question is: is there a way to detect that two functions are NOT CROSSING without error. I was thinking maybe there is a function that detects errors so I could write something like: If_Error(Solve(f1(x);f2(x),x))= 1 if f1 and f2 are not crossing.


________________________________

Your question is now different, but the answer is same: plot your functions, doing that
you will kow the bracket range for root(s),i.e: the abscissa where they cross each other.

Again: attach your work sheet, few seconds job I will return,
but I visit this forum only at night [generally every day].
If you agree to attach your work sheet, I will catch it sooner.

Jean

Offline mkraska  
#5 Posted : 29 October 2015 20:13:49(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,990
Germany

Was thanked: 1128 time(s) in 724 post(s)
Originally Posted by: Veldirn Go to Quoted Post
I think you don't understand what I wish to know. Let me rephrase my question is: is there a way to detect that two functions are NOT CROSSING without error. I was thinking maybe there is a function that detects errors so I could write something like: If_Error(Solve(f1(x);f2(x),x))= 1 if f1 and f2 are not crossing.


You can assign the result of solve to a variable and check if that variable is defined. If not, you can check lastError.

solve.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Users browsing this topic
Guest
Similar Topics
maple solve problem (Questions)
by soomoon 25/09/2023 15:01:05(UTC)
equation solve problem (Questions)
by soomoon 15/06/2023 03:12:21(UTC)
Function SOLVE PROBLEM (Questions)
by Jesús c 06/02/2023 04:04:00(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.