Qbasicnews.com
November 27, 2021, 05:30:32 PM
 Welcome, Guest. Please login or register. 1 Hour 1 Day 1 Week 1 Month Forever Login with username, password and session length
 Home Help Search Login Register
 Pages: [1]
 Author Topic: i am doing a trigomometry graphing project need u guys help!  (Read 2043 times)
shuango
New Member

Posts: 8

 « on: March 20, 2003, 03:59:20 PM »

how to graph sin(x) and cos(x) on the Qbasic, with all the scales on? like X axis and Y axis, also able to change the size of graph by changing the phase shift, and amplitude,   Y=a*sin(x-2) how to graph it?
 Logged
toonski84
__/--\__

Posts: 2567

 « Reply #1 on: March 20, 2003, 07:53:56 PM »

it depends are you just inputting a,b,c and d or are you actually making something that interprets a formula put in.

i'm assuming the former since this sounds like a school thing, but you have the formula right there

Code:
for x = 0 to whatever
y = a * (bx + c) + d
line -(x, y)
next x
 Logged

i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
 Pages: [1]