Search the web
Sign In
New User? Sign Up
frink
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
abs function on an interval?   Message List  
Reply | Forward Message #232 of 257 |
I probably don't understand intervals well enough yet, but if

x = new interval[-2,2]
[-2,2]

and

x^2
[0, 4]

then why doesn't abs[x] yield [0,2]?

Further, why doesn't abs[x+2] => [0, 4]?

I would have thought that applying "abs" to all values in the interval would
have yielded the subrange of [0,2].

Instead, it appears that abs[] is applying the operation to only the end points,
and not the entire interval. Then, because the absolute value of the end points
are the same value, the range collapses to the single value.

However, this is apparently not the case for:

abs[x + 2]

which I would have thought as: [0, 4], but it's not: it's 4.

And, if one uses intervals with mean values:

y = new interval[-2, 0, 2]
[-2, 0, 2]
abs[y]
2
abs[y+2]
4

what happened to the abs[] on the lower bound of the interva?




Tue Apr 14, 2009 7:18 am

alan_stebbens
Online Now Online Now
Send Email Send Email

Forward
Message #232 of 257 |
Expand Messages Author Sort by Date

I probably don't understand intervals well enough yet, but if x = new interval[-2,2] [-2,2] and x^2 [0, 4] then why doesn't abs[x] yield [0,2]? Further, why...
Alan Stebbens
alan_stebbens
Online Now Send Email
Apr 14, 2009
7:18 am

... Good question. The short answer is that I'm following the convention for abs[x] that's defined in one of the seminal works on interval arithmetic, Ramon...
Alan Eliasen
aeliasen
Online Now Send Email
Apr 14, 2009
9:44 am

... As of the current release, the behavior of the abs[x] function is changed for interval arguments (real or complex arguments are not changed.) It now does...
Alan Eliasen
aeliasen
Online Now Send Email
Apr 26, 2009
10:37 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help