Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i need help on my graphing program

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i was wondering if anyone colud help me on my graphing problem. i need to know how to have the user input a problem such as x+1 and use that problem over and over changing the value of x. can anyone please help me. i would appreciate it.
 
Do you mean that you want to graph an equation (y+mx+b)?

To change the value of x over and over again you can either use DO-LOOP or FOR-NEXT. To graph it you have to be careful, you have to flip it over. Normally as you go higher and higher on a graphi the Y coordiante gets higher, on a computer screen it gets lower.
 
Just use a FOR counter, ie.

FOR x = 1 TO 10
Result = x + 1
PRINT "If x = ";x;" then the result is ";result
NEXT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top