[Tfug] OT: Python: Fractional Exponents of Negative Numbers
Chris Niswander
MOST.SENDERS.ARE._FILTERED.OUT_--FOR.MY.REAL.EMAIL.ADDRESS.check.my.website..tfug.rcvr.x6a3 at bitboost.com
Tue Jan 19 13:34:19 MST 2010
I think your post is adequately on-topic here,
but if you're interested in Python,
you might do a web search for Tuple:
"Tucson Python Language Enthusiasts" user group.
Charles R. Kiss wrote:
> At the risk of being flamed; I posted this on a python forum and thought
> I would solicit comments from TFUG since I know there are some great
> programmers here.
>
> Because I get a ValueError:
>
> "Is there a module out there that can approximate a real solution to a
> function containing a negative number raised to a fractional exponent?
> For example, solving for m in: C=m**m*((A**(m+1))/B**m), where A and B
> are known, and of opposite sign, and C is known.
>
> My understanding is, an iteration is required, such as Newton's Method
> (that isn't reliable when using complex numbers), but perhaps with some
> arbitrary precision all fractional exponents containing even numbered
> denominators can be excluded, so as not to need to import cmath (which
> is buggy in IDLE), nor have solutions containing complex numbers, since
> it can be implied that the solution to m lies in fact between two
> arbitrarily close rational numbers, ie. fractions with odd-numbered
> denominators??"
>
> Or: How do I do this???
>
> Thanks,
> Charles
>
>
More information about the tfug
mailing list