Results 1 to 7 of 7

Thread: draw curv sin(X) in vb.net

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2011
    Posts
    3

    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


  2. #2

    Thread Starter
    New Member
    Join Date
    Nov 2011
    Posts
    3

    Re: draw curv sin(X) in vb.net

    hellooooooooooooooooooo
    please help me !!

  3. #3
    Hyperactive Member
    Join Date
    Jul 2011
    Posts
    278

    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.

  4. #4
    Hyperactive Member
    Join Date
    Jul 2011
    Posts
    278

    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.

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2011
    Posts
    3

    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 !!!!

  6. #6
    Hyperactive Member stepdragon's Avatar
    Join Date
    Aug 2011
    Location
    Cincinnati
    Posts
    288

    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 "*"


    Quote 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.

    If you're wrong, you'll learn. If I'm wrong, I'll learn. Try something new and go from there. That's how we improve.

    CodeBank: VB.Net - Simple Proper Image Scaling in Correct Aspect Ratio - Star Rating Control
    Useful Links: HOW TO USE CODE TAGS

  7. #7
    Member
    Join Date
    May 2010
    Posts
    60
    removed
    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
  •  



Click Here to Expand Forum to Full Width