|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> How can you explain it to someone who is neither? You would have to
> start from number theory principles...
returns -1 * A?
--
Stop the infinite loop, I want to get off! http://surreal.istic.org/
Paraphernalia/Never hides your broken bones,/ And I don't know why you'd
want to try:/ It's plain to see you're on your own. -- Paul Simon
v2sw6PChw7ln6pr4ck5ma9u8Lw3m2l7Di2e6t2TNDb9Ien6g6a2Xr1p6/9 hackerkey.com
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Tim Cook <z99### [at] bellsouthnet> wrote:
> From the documentation:
>
> "abs(A) Absolute value of A. If A is negative, returns -A otherwise
> returns A."
>
Not too long ago, this very subject was addressed in a different thread..
<43401940$1@news.povray.org>
The level of confusion that abs() seems to generate among some users DOES
indicate, IMHO, that a "better" description is needed in the docs. OR
perhaps just an example of its use! In fact, there are other "math"
keywords that could use examples as well, to help the non-mathematician.
Ken
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Tim Cook wrote:
> Anthony D. Baye wrote:
>>> "abs(A) Absolute value of A. If A is negative, returns -A otherwise
>>> returns A."
>> Thus:
>> abs(x) returns the MAGNITUDE of x, such that |x|=|-x|. This value is
>> always positive.
>
> Ahhhh ok, I just stumbled on the minus sign in confusion, as if you're
> not paying close attention it looks redundant and as though it
> returns a negative number. Isn't there a better way of wording the
> docs there?
Not a replacement, but maybe an addition?
"Thus, no matter if A is positive or negative (or zero), abs(A) will return
a positive number (or zero)."
Rune
--
3D images and anims, include files, tutorials and more:
rune|vision: http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Rune wrote:
> Not a replacement, but maybe an addition?
I find examples usually help, too.
So, abs(0) is 0, abs(12) is 12, and abs(-5) is 5. The result is never
negative.
--
Darren New / San Diego, CA, USA (PST)
Sabotage? Communist conspiracy? Or just
Microsoft again? Only time will tell.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Darren New wrote:
> Rune wrote:
>> Not a replacement, but maybe an addition?
>
> I find examples usually help, too.
> So, abs(0) is 0, abs(12) is 12, and abs(-5) is 5. The result is
> never negative.
Yes, agreed.
Rune
--
3D images and anims, include files, tutorials and more:
rune|vision: http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |