Sign in to follow this  
Followers 0
James

Graph Pattern

2 posts in this topic

Only a little snippet. I remember reading this somewhere on another forum, BASIC I think. They said if you plot the results from the output, it will display an interesting pattern...

Dim $X = 0

For $i = 1 to 100
    ConsoleWrite($X & @CRLF)
    $X = $X ^ 2 - 1.6
Next

James

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

It really doesn't. At all. Just an increasing line. Now, tan(x*100)/2 is an interesting pattern.

Since I can't show you my graphing calculator...try it here: http://javaboutique.internet.com/graphcalc/

Posted Image

Edited by Firestorm

[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0