Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^8: solve cubic equations (Python)

by no_slogan (Deacon)
on May 05, 2017 at 19:22 UTC ( #1189601=note: print w/replies, xml ) Need Help??


in reply to Re^7: solve cubic equations (Python)
in thread solve cubic equations

...you didn't see the error in the code.

Touché. But this kind of thing is a stopped clock. It's only right twice a day, and the rest of the time you have to catch the error yourself.

I just discovered use integer... it's been in core since the beginning of time, but for some reason I never noticed it before.

Replies are listed 'Best First'.
Re^9: solve cubic equations (Python)
by LanX (Archbishop) on May 05, 2017 at 23:20 UTC
    > I just discovered use integer..

    Interesting, but I didn't mean that, Perl's parser allows typing

     my TYPE VARLIST

    See my

    But not much more was ever implemented.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

      Yes, I got that. I was looking at B::CC recently, and I was surprised to see that support for type attributes is still marked as DOES NOT WORK YET. The way you tell it that a variable is an int is to name it with _i at the end.
        The way you tell it that a variable is an int is to name it with _i at the end.
        And that doesn't work either. Everything is actually compiled as doubles.
        Thanks ... well I read further and found types and optimizer

        Apparently Reini was working on it and the code reveals a Perl interface to identify types.

        I wished I had enough time to explore this further...

        Cheers Rolf
        (addicted to the Perl Programming Language and ☆☆☆☆ :)
        Je suis Charlie!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1189601]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2019-10-19 20:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?