Thread: programmming with two constants

  1. #1
    Registered User
    Join Date
    Feb 2015
    Posts
    83

    programmming with two constants

    I wanted to know if I could make a program to graph a line between two set points.

    On an xy graph I have
    y=20
    y=50
    x is a function of times and goes from 1-100

    I want to make a line that goes up to y=20 (doesn't have to be linear just needs to get to y=20) and then the line can not pass y=50. So it would basically have to stay between the set point until time =100. It could do whatever it wants as long as it stays between the two points

    Is there a way I could do this or no

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by ashley1nonly View Post
    I wanted to know if I could make a program to graph a line between two set points.

    On an xy graph I have
    y=20
    y=50
    x is a function of times and goes from 1-100

    I want to make a line that goes up to y=20 (doesn't have to be linear just needs to get to y=20) and then the line can not pass y=50. So it would basically have to stay between the set point until time =100. It could do whatever it wants as long as it stays between the two points

    Is there a way I could do this or no
    Yes. What have you tried so far?
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Constants
    By GokhanK in forum C Programming
    Replies: 9
    Last Post: 02-15-2011, 02:01 AM
  2. Displaying Data in C programmming
    By sboothman in forum C Programming
    Replies: 1
    Last Post: 05-11-2004, 08:02 PM
  3. Help with Constants and enum constants. Newbie learning C++.
    By UnregJDiPerla in forum C++ Programming
    Replies: 5
    Last Post: 01-07-2003, 08:29 PM
  4. XOR-on constants
    By Unregistered in forum C++ Programming
    Replies: 5
    Last Post: 02-17-2002, 07:20 AM
  5. Constants
    By Marky_Mark in forum C++ Programming
    Replies: 3
    Last Post: 11-26-2001, 06:39 PM

Tags for this Thread