Login  Register

Re: Roots

Posted by Rich Ulrich on Nov 15, 2019; 5:05pm
URL: http://spssx-discussion.165.s1.nabble.com/Roots-tp5738554p5738559.html

I wonder - Is there any demand for the exception-coding
that would be necessary?  How many people write code
where they want to take the fractional root of a negative
number, where the fraction is the reciprocal of an odd integer?
( Note, the fraction cannot be expressed EXACTLY on a binary
computer. How is that accommodated?)

The natural programming solution to non-integer roots is
to use logs.  I suppose if there is an area where the problem
comes up, specialized programs for that area might do it.
I suspect the efficient solution might use a special subroutine
call rather than an in-line expression.

--
Rich Ulrich


From: SPSSX(r) Discussion <[hidden email]> on behalf of Bruce Weaver <[hidden email]>
Sent: Friday, November 15, 2019 11:35 AM
To: [hidden email] <[hidden email]>
Subject: Re: Roots
 
https://www.ibm.com/support/knowledgecenter/en/SSLVMB_26.0.0/statistics_reference_project_ddita/spss/base/syn_transformation_expressions_domain_errors.html



Kirill Orlov wrote
> See DOMAIN ERRORS paragraph in Command Syntax Reference.
>
>
> 15.11.2019 4:53, Stan Gorodenski пишет:
>> compute z = (-1)**(1/3).
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD