Saturday, March 8, 2025

Why is OCaml better than Haskell?

Why is OCaml better than Haskell?

Ed Bell

Manalisha Baruah

Dhritajit Kalia

Given that, [math]i=\sqrt{\,-\,1}\,\,,[/math] so that [math]{{i}^{\,2}}=\,\,-\,1[/math] and [math]{{i}^{\,3}}=\,\,-\,\,i\,\,.[/math]

Now suppose that, [math]{{i}^{\,\frac{1}{6}}}=z\,\,,[/math] so that [math]{{z}^{6}}=i\,\,,[/math] that is, [math]{{z}^{6}}-i=0\,\,,[/math] that is, [math]{{z}^{6}}+{{i}^{3}}=0\,\,,[/math] that is,

[math]{{\left( {{z}^{\,2}} \right)}^{3}}+{{i}^{3}}=0\,\,\Rightarrow \,\left( {{z}^{\,2}}+i \right)\times \left( {{\left( {{z}^{\,2}} \right)}^{2}}-{{z}^{\,2}}\times i+{{i}^{\,2}} \right)=0[/math] , using factorization formula.

[math]\Rightarrow \,\,\left( {{z}^{\,2}}+i \right)\times \left( {{z}^{\,4}}-{{z}^{\,2}}\times i-1 \right)=0[/math]

[math]\Rightarrow \,\,{{z}^{\,2}}+i=0\,\,,\,\,{{z}^{\,4}}-{{z}^{\,...[/math]

Read more »

Read more in Code

No comments:

Post a Comment

This month’s best new literary fiction

Don't miss the best new literary fiction from the past month, hand-picked by our editors! Don't miss this month's literary ficti...