Systematic Architecture [EN]
The blog on systems development/architecture, to be a beautiful, artistic one.
Monday, 3 August 2015
Fibonacci Number Graph with Maxima
Let's make the graph of Fibonacci number (series). However if you plot fib(x) as usually as functions, e.g. sin(x), ``` wxplot2d (fib(x),[x, 0, 5])$ ``` then you got an error. ``` plot2d: expression evaluates to non-numeric value everywhere in plotting range. plot2d: nothing to plot. ``` Because the x of fib(x) doesn't allow a decimal value. In proof if you execute `fib(1.5)` your PC will be frozen... So works the following. ``` plot2d ([discrete, makelist(fib(i), i, 0, 64),[x, 0, 64]])$ wxplot2d ([discrete, makelist(fib(i), i, 0, 64),[x, 0, 64]])$ wxplot2d ([discrete, makelist(1/fib(i), i, 0, 64),[x, 0, 64]])$ ```
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment