Link to home
Start Free TrialLog in
Avatar of parian061697
parian061697

asked on

Any windows application to draw sine wave?

Hi,
I want to know if there is any windows application around (preferably freeware), which can draw sine waves easily (as a sort of built in function or block). Of course you can somehow manage to draw them with free hand tool in word, but this takes a lot of effort and the result is not usually satisfactory. Also there are some Math applications (like Matlab,...), but I didn't mean them, but a drawing application.

Thanx
ASKER CERTIFIED SOLUTION
Avatar of mark2150
mark2150

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of parian061697
parian061697

ASKER

Dear mark2150, I really appreciate your answer, but I am not that experienced in this buisness, so I would like to know which program are you talking about.  (I assumed that it was word, so I went to its help and searched for "picture box", but there was no match). So I don't know how to insert a picture box to start with. I would also appreciate it if you tell me where I shall write my code.
   
Visual Basic is what we're using here...

M
I don't have visual basic on my computer installed, so I have to try it on Tuesday on another computer, and ask for your help if something comes up. So let's get back to this in a few day's time.  
Ok. What exactly do you need? Are you just trying to make illustrations for a text or somesuch? If so I can capture the images here and email them to you if you want. Write me direct at the address in my profile.

M
if you just have to draw a sine wave for a document you can use the curve tool in word...
to be able to use it, check out the Drawing toolbar, then click the Autoshapes option, then Lines, finally the Curve button... this is more convinient than the freehand tool...
sorry but i can't think of a drawing application w/c has a built-in function to draw sine waves... but if you want a more accurate drawing try-out visio, photoshop or any other drawing application were you can use gridlines. more often than not those applications have curve or arc tools...

hope i helped...
I got the files. Thanks a lot.
For impact2: I have already got what I wanted via e-mail, but thanks for your help any way.
I modified the above code to use the sin() function instead of tan and jumped around the code that drew gridlines. Setting the SPINS=5 gave me five complete sine wave cycles on the screen. A quick <Alt PrtSc> and paste into PhotoEditor got the file and then all I did was save into .BMP and .JPG. Piece of cake.

impact2, trying to freehand an *accurate* sine wave with curves or arcs would be a NIGHTMARE. You'ld have to bump up to MathCAD or somesuch to be able to pull trig. I had written the above module to solve the same problem that parian was having. I was writing a technical paper and needed a family of tangent curves and there was just no way to get nice, crisp, "textbook" quality trig functions.

M