CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Feb 2010
    Posts
    5

    graph polynomial using 2d array

    So here is the assignment given...

    Use only one function, main for this program. Calculate the values of y based on values of x
    from −10≤x≤10 by increments of 0.5. Store the x values in a single dimensional double
    array and the y values in another single dimensional double array.

    Find the minimum and maximum values for y. Use these values to scale the y axis into 50
    divisions. The x axis is already divided into 41 divisions. Use the resulting scaling to find the
    row and column of a 50X41 character array in which to place a marker indicating a point on the
    polynomial curve.

    I'm having trouble getting this program to work. Any advice would be appreciated.
    Attached Files Attached Files

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

Featured