Number>>cubed

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Number>>cubed

Bert Freudenberg
Me thinks that method needs this example:

-80538738812075974 cubed + 80435758145817515 cubed + 12602123297335631 cubed

- Bert -


Reply | Threaded
Open this post in threaded view
|

Re: Number>>cubed

Christoph Thiede

:-)


(Yay, Squeak beats Google:

)


Von: Squeak-dev <[hidden email]> im Auftrag von Bert Freudenberg <[hidden email]>
Gesendet: Mittwoch, 23. Oktober 2019 22:29:23
An: The general-purpose Squeak developers list
Betreff: [squeak-dev] Number>>cubed
 
Me thinks that method needs this example:

-80538738812075974 cubed + 80435758145817515 cubed + 12602123297335631 cubed

- Bert -


Carpe Squeak!
Reply | Threaded
Open this post in threaded view
|

Re: Number>>cubed

Nicolas Cellier
I have unpublished acceleration for cubed and cube-root too I think.
For now cubed was in EToys, so should we move it to Kernel-Numbers?

Le mer. 23 oct. 2019 à 23:21, Thiede, Christoph <[hidden email]> a écrit :

:-)


(Yay, Squeak beats Google:

)


Von: Squeak-dev <[hidden email]> im Auftrag von Bert Freudenberg <[hidden email]>
Gesendet: Mittwoch, 23. Oktober 2019 22:29:23
An: The general-purpose Squeak developers list
Betreff: [squeak-dev] Number>>cubed
 
Me thinks that method needs this example:

-80538738812075974 cubed + 80435758145817515 cubed + 12602123297335631 cubed

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: Number>>cubed

timrowledge


> On 2019-10-23, at 2:29 PM, Nicolas Cellier <[hidden email]> wrote:
>
> I have unpublished acceleration for cubed and cube-root too I think.

Stomp on that pedal!

> For now cubed was in EToys, so should we move it to Kernel-Numbers?

Certainly


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Useful Latin Phrases:- Te precor dulcissime supplex! = Pretty please with a cherry on top!



Reply | Threaded
Open this post in threaded view
|

Re: Number>>cubed

Christoph Thiede

#cubed appears to have no real senders - why don't you put the acceleration into #raisedTo: instead?


Von: Squeak-dev <[hidden email]> im Auftrag von tim Rowledge <[hidden email]>
Gesendet: Mittwoch, 23. Oktober 2019 23:37:40
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] Number>>cubed
 


> On 2019-10-23, at 2:29 PM, Nicolas Cellier <[hidden email]> wrote:
>
> I have unpublished acceleration for cubed and cube-root too I think.

Stomp on that pedal!

> For now cubed was in EToys, so should we move it to Kernel-Numbers?

Certainly


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Useful Latin Phrases:- Te precor dulcissime supplex! = Pretty please with a cherry on top!





Carpe Squeak!
Reply | Threaded
Open this post in threaded view
|

Re: Number>>cubed

Nicolas Cellier
Hi Christoph,
because I have played with binary-ternary expansion of the power (raisedToInteger:) so needed squared and cubed

Le mer. 23 oct. 2019 à 23:47, Thiede, Christoph <[hidden email]> a écrit :

#cubed appears to have no real senders - why don't you put the acceleration into #raisedTo: instead?


Von: Squeak-dev <[hidden email]> im Auftrag von tim Rowledge <[hidden email]>
Gesendet: Mittwoch, 23. Oktober 2019 23:37:40
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] Number>>cubed
 


> On 2019-10-23, at 2:29 PM, Nicolas Cellier <[hidden email]> wrote:
>
> I have unpublished acceleration for cubed and cube-root too I think.

Stomp on that pedal!

> For now cubed was in EToys, so should we move it to Kernel-Numbers?

Certainly


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Useful Latin Phrases:- Te precor dulcissime supplex! = Pretty please with a cherry on top!






Reply | Threaded
Open this post in threaded view
|

Re: Number>>cubed

Nicolas Cellier
In reply to this post by timrowledge
With integer factorization it looks even more like black magic!

a := 80538738812075974.
b := 80435758145817515.
c := 12602123297335631.
a factors. a RunArray runs: #(1 1 1) values: #(2 1545949 26048316863)
b factors. a RunArray runs: #(1 1 1 1) values: #(5 7 59753 38461073393)
c factors. a RunArray runs: #(1 1 1) values: #(463 7607 3578073991)
(b-a) factors. a RunArray runs: #(1 1 1 1 1) values: #(-1 11 43 215921 1008323)
(a*b+b squared + a squared) factors. a RunArray runs: #(1 1) values: #(1774113869131 10954535947520123161981)
((b-a)*(a*b+b squared + a squared)-42) factors. a RunArray runs: #(1 3 3 3) values: #(-1 463 7607 3578073991)

Le mer. 23 oct. 2019 à 23:37, tim Rowledge <[hidden email]> a écrit :


> On 2019-10-23, at 2:29 PM, Nicolas Cellier <[hidden email]> wrote:
>
> I have unpublished acceleration for cubed and cube-root too I think.

Stomp on that pedal!

> For now cubed was in EToys, so should we move it to Kernel-Numbers?

Certainly


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Useful Latin Phrases:- Te precor dulcissime supplex! = Pretty please with a cherry on top!





Reply | Threaded
Open this post in threaded view
|

Re: Number>>cubed

Squeak - Dev mailing list
In reply to this post by Christoph Thiede

As a math lover, I would suggest that example instead!


https://www.youtube.com/watch?v=GXhzZAem7k0



On 2019-10-23 17:21, Thiede, Christoph wrote:

:-)


(Yay, Squeak beats Google:

)


Von: Squeak-dev [hidden email] im Auftrag von Bert Freudenberg [hidden email]
Gesendet: Mittwoch, 23. Oktober 2019 22:29:23
An: The general-purpose Squeak developers list
Betreff: [squeak-dev] Number>>cubed
?
Me thinks that method needs this example:

-80538738812075974 cubed + 80435758145817515 cubed + 12602123297335631 cubed

- Bert -


    
-- 
-----------------
Beno?t St-Jean
Yahoo! Messenger: bstjean
Twitter: @BenLeChialeux
Pinterest: benoitstjean
Instagram: Chef_Benito
IRC: lamneth
GitHub: bstjean
Blogue: endormitoire.wordpress.com
"A standpoint is an intellectual horizon of radius zero".  (A. Einstein)