Results 1 to 1 of 1

Thread: Making a fomula for this...

  1. #1
    Nov 2010

    [SOLVED] Making a fomula for this...

    Hi, everyone! Sorry if this is wrong category in advance
    I need to make a "formula" for a program I'm making, but I have a bit of trouble. Here's the thing:
    The program is given a max. number, and a number (n) between zero and that max. number (so, 0 =< n < max), and it has to "generate" the number from it that should proportionally raise as getting towards that x number.
    Also, the value when n is 0 should be a constant which can be changed. Let's take it to be 4 in this example.

    Now, I have managed to do the following "formula":
    Lets say that max is 100 in this case.
    It does the job as I described it, but it is not really good because at first the differences are really low (if n is 0, then result is 4, and if n is 80, then result is 20...), but then they get much bigger (if n is 99, result is 400).

    Now, this is just as I want, but the differences go too high after a certain amount...

    I guess that it is kinda hard to understand what I wrote, but ask, and I will explain. Thanks a lot in advance

    EDIT: This might make this clearer to you... If you make a graph out of my formula, you will get parabola. I do need that, but with smaller "angle". Also, I would appreciate if you tell me what I do add/change to be able to "control" the "angle".
    EDIT 2: Nevermind, solved it using powers.
    Last edited by Jujo; Nov 29th 2010 at 07:45 AM.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. can't extract unknown from vectorised fomula(matlab)
    Posted in the Math Software Forum
    Replies: 1
    Last Post: Aug 14th 2010, 03:29 AM
  2. quadratctic fomula's
    Posted in the Algebra Forum
    Replies: 11
    Last Post: May 20th 2010, 09:44 AM
  3. Rearranging a fomula??
    Posted in the Algebra Forum
    Replies: 1
    Last Post: Apr 18th 2009, 02:50 AM
  4. Replies: 3
    Last Post: Sep 27th 2008, 07:41 AM
  5. find the sum of the series (taylors fomula)
    Posted in the Calculus Forum
    Replies: 1
    Last Post: Feb 8th 2007, 09:48 AM

Search Tags

/mathhelpforum @mathhelpforum