Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2008-04-15 02:17:49

Tredici
Member
Registered: 2005-12-12
Posts: 28

A Simple Problem (But I don't know how to explain it)

Hi All,

This is probably going to be a very simple problem for you masterminds. Please excuse my ignorance here guys but I'm completely out of practice and haven't done this sort of stuff for about five years.

I need a simple function which will produce a value of 0 when 0 is passed into it, a value of 20 when 50 is passed into it, and a value of 0 when 100 is passed into it.

Sounds so simple, but I've literally spent hours getting something even vaguely close. I've gotten closest with one function, a depiction of which is attached to this post.

Thanks in advance for any help at all.

Cheers, David

Last edited by Tredici (2008-04-15 02:18:44)

Offline

#2 2008-04-15 02:48:21

bossk171
Member
Registered: 2007-07-16
Posts: 305

Re: A Simple Problem (But I don't know how to explain it)

f(0)=0
f(50)=20
f(100) = 0

Could you maybe use a trig function? Like:

Or do you just want a quadratic like


There are 10 types of people in the world, those who understand binary, those who don't, and those who can use induction.

Offline

#3 2008-04-15 03:08:01

Tredici
Member
Registered: 2005-12-12
Posts: 28

Re: A Simple Problem (But I don't know how to explain it)

Thanks a bundle bossk172. I was indeed looking for a quadratic. Do you mind me asking how you came up with it?

Offline

#4 2008-04-15 04:10:58

Dragonshade
Member
Registered: 2008-01-16
Posts: 147

Re: A Simple Problem (But I don't know how to explain it)

You connect those points, then you could compare the graph to other types of funcions'

Offline

#5 2008-04-15 10:42:20

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,711

Re: A Simple Problem (But I don't know how to explain it)

You can play with bossk's functions here: Function Grapher and Calculator


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#6 2008-04-15 12:37:04

Ricky
Moderator
Registered: 2005-12-04
Posts: 3,791

Re: A Simple Problem (But I don't know how to explain it)

Lagrange Polynomials

For your problem, the L_j are:

So that the final polynomial is:

This simplifies to bossk171's polynomial.

Newton also has a polynomial interpolation method if you want to look that up.


"In the real world, this would be a problem.  But in mathematics, we can just define a place where this problem doesn't exist.  So we'll go ahead and do that now..."

Offline

Board footer

Powered by FluxBB