Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Earlier this year I implemented the arithmetic of ℚ[φ] in Ruby, to illustrate how something like this would work for my students: http://bit.ly/1gSQdpC

Obviously the Haskell implementation more directly expresses the idea! I found it easier to implement ℚ[φ] than ℚ[√5], even though the two are isomorphic as fields.



> I found it easier to implement ℚ[φ] than ℚ[√5], even though the two are isomorphic as fields.

In fact they are equal (as opposed to, say, ℝ[x]/(x^2 + 1) and ℂ, which are 'merely' isomorphic).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: