Re: I need help with cosine and ()

2020-12-20 Thread ToddAndMargo via perl6-users
On 12/20/20 10:11 AM, Bruce Gray wrote: $a + $b - $c * $d / $e.foo , the .foo method is called on $e, not on the whole A-through-E sub-expression. That makes sense. It is the precidence. In college, we called it "algebraic operation". ** came before *; * came before +; etc In Raku, a m

Re: I need help with cosine and ()

2020-12-20 Thread Bruce Gray
> On Dec 20, 2020, at 6:08 AM, ToddAndMargo via perl6-users > wrote: > >>> On Sun, Dec 20, 2020 at 02:05 ToddAndMargo via perl6-users >>> mailto:perl6-users@perl.org>> wrote: >>>Hi All, >>>Why does this work? >>> say (45*π/180).cos >>> 0.7071067811865476 >>>And

Re: I need help with cosine and ()

2020-12-20 Thread ToddAndMargo via perl6-users
On Sun, Dec 20, 2020 at 02:05 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All, Why does this work? say (45*π/180).cos 0.7071067811865476 And this not? say 45*π/180.cos -236.22573454917193 Is not the math suppose

I need help with cosine and ()

2020-12-20 Thread ToddAndMargo via perl6-users
Hi All, Why does this work? say (45*π/180).cos 0.7071067811865476 And this not? say 45*π/180.cos -236.22573454917193 Is not the math suppose to be done first? Confused again, -T