Mandelbrot set: Difference between revisions

Content deleted Content added
Laurence (talk | contribs)
m Updated description and link for Fōrmulæ solution
Line 4,184: Line 4,184:
******
******
** </pre>
** </pre>

----
'''haskell one-liner :'''
<lang haskell>
foldr(>>)(return())[putStrLn[let(a,b)=foldr(\_(u,w)->(u^2-w^2+x,2*u*w+y))(0,0)[1..500]in if a^2+b^2<4 then '*' else ' '|x<-[-2,-1.98..0.5]]|y<-[1,0.98.. -1]]
-- open GHCI > Copy and paste the above code > Hit enter

output :
<pre>





*
**
*
*******
*********
*********
*********
**********
**********
********
*******
*****
* ***********
* ******************* *
* * *************************
*** ****************************
**** ******************************* ****
************************************* *****
*****************************************
******************************************
******************************************
*******************************************
** *********************************************
************************************************
***********************************************
*************************************************
************************************************** *
*******************************************************
*************************************************** *
*****************************************************
* ******************************************************
* * *****************************************************
*** ********* *******************************************************
************* ********************************************************
**************** *******************************************************
******************* *******************************************************
* ******************* *******************************************************
********************* ********************************************************
********************** ********************************************************
*********************** ********************************************************
*********************** *******************************************************
*******************************************************************************
**** *******************************************************************************
***********************************************************************************
** * ***********************************************************************************
***********************************************************************************
**** *******************************************************************************
*******************************************************************************
*********************** *******************************************************
*********************** ********************************************************
********************** ********************************************************
********************* ********************************************************
* ******************* *******************************************************
******************* *******************************************************
**************** *******************************************************
************* ********************************************************
*** ********* *******************************************************
* * *****************************************************
* ******************************************************
*****************************************************
*************************************************** *
*******************************************************
************************************************** *
*************************************************
***********************************************
************************************************
** *********************************************
*******************************************
******************************************
******************************************
*****************************************
************************************* *****
**** ******************************* ****
*** ****************************
* * *************************
* ******************* *
* ***********
*****
*******
********
**********
**********
*********
*********
*********
*******
*
**
*




</pre>


=={{header|Haxe}}==
=={{header|Haxe}}==