in reply to Re: solve cubic equations (Python)
in thread solve cubic equations
Not sure what the advantage of Python is in this case. Your code is basically the same, except that it doesn't have any dollar signs or semicolons. I never liked Python's "x if cond else y" as a replacement for "cond ? x : y", it just doesn't seem right to put the condition in the middle of the expression. But I have to admit that Python's built-in multiple precision ints are a huge advantage for certain kinds of math programming.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: solve cubic equations (Python)
by vrk (Chaplain) on May 04, 2017 at 07:57 UTC | |
by no_slogan (Deacon) on May 04, 2017 at 13:37 UTC | |
by choroba (Cardinal) on May 04, 2017 at 15:59 UTC | |
by no_slogan (Deacon) on May 05, 2017 at 06:49 UTC | |
by LanX (Saint) on May 05, 2017 at 09:40 UTC | |
by LanX (Saint) on May 05, 2017 at 12:50 UTC | |
by Anonymous Monk on May 05, 2017 at 08:29 UTC | |
by vrk (Chaplain) on May 05, 2017 at 12:18 UTC | |
| |
by no_slogan (Deacon) on May 04, 2017 at 17:04 UTC | |
by Anonymous Monk on May 04, 2017 at 18:27 UTC | |
Re^3: solve cubic equations (Python)
by Anonymous Monk on May 03, 2017 at 16:43 UTC | |
by LanX (Saint) on May 04, 2017 at 23:16 UTC | |
|
In Section
Cool Uses for Perl