|
-
Nov 4th, 2011, 03:15 AM
#1
Thread Starter
New Member
draw curv sin(X) in vb.net
hiii
please can you help me in this question !!
Write a program that will display the graph for the sin(x) function where 0 <= X<= 180 degrees. use primitive drawing using "*".
this application solve in console application
-
Nov 4th, 2011, 05:52 AM
#2
Thread Starter
New Member
Re: draw curv sin(X) in vb.net
hellooooooooooooooooooo
please help me !!
-
Nov 4th, 2011, 06:05 AM
#3
Hyperactive Member
Re: draw curv sin(X) in vb.net
Have you any previous experience in vb.net?
Have you attempted to write any code to produce the graph yet? (if so post it)
This sounds a lot like a school based question, as a rule of thumb posters won't just give you the answer. You don't learn anything that way, instead pointing you in the right direction is preferred.
-
Nov 4th, 2011, 06:06 AM
#4
Hyperactive Member
Re: draw curv sin(X) in vb.net
Also, make use of the search feature and google.
Creating graphs within vb.net will return thousands of examples I'm sure.
-
Nov 4th, 2011, 06:48 AM
#5
Thread Starter
New Member
Re: draw curv sin(X) in vb.net
no ... this is a university question but this is in course introduction to vb.net
i don't have any graph to this curve
please can you give me any simple code to draw this curve
just i have a hint to write this code !
or a simple code !!
please help me !!!!
-
Nov 4th, 2011, 10:59 AM
#6
Re: draw curv sin(X) in vb.net
First of all, please stop with the Bold / Sizes / Colors in your posts. they're very distracting.
Lets go over your requirements:
- Make a Graph
- Display Sin(x)
- where X<=180 and X>=0... (0<=X<=180)
- ...
- Use Primitive drawing using "*"
 Originally Posted by ahm.i
this application solve in console application
I'm not completely clear, but I'm assuming you need a console application that outputs the graph using ASCII style drawing using * as the line?
What I would do is find some code on how to graph on a normal graphic. Create a simple bitmap the resolution of your console window (by that I mean the number of ascii characters height and width, not the number of pixels) Generate the graph in black / white on that bitmap. then convert the bitmap to ascii by ceating a two dimentional array to hold characters, put your "*" on whichever color the line was (guessing white), then leave the rest as spaces / blank. then all you need to do is display the array, and boom you have a graph drawn in ascii.
there's probably a simpler way, but heck, that's the first thing that popped into my head.
If you can at least find some code simmilar to what you're looking for and make a half decent attempt at fitting it to your situation I know I'll help you more. But just asking for something without providing any input yourself and you're risking being ignored.
Hope this helps you in your search.
-
Nov 4th, 2011, 01:19 PM
#7
Member
Last edited by yo mismo; Nov 5th, 2011 at 03:37 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|