Mar. 27th, 2005

juan_gandhi: (Default)
assertEqual(x.add(y).sin(), x.sin().mult(y.cos()).add(x.cos().mult(y.sin())));

The same assertion in Forth would look something like this (ugly details omitted):

x y + sin x sin y cos * x cos y sin * + ASSERT_EQUAL

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

October 2025

S M T W T F S
    1 23 4
5 678 9 1011
12 13 1415 161718
1920 2122 23 2425
26 2728 293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Nov. 1st, 2025 06:45 am
Powered by Dreamwidth Studios