Non Linear Formula: Generate Formula From Logic
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I am trying to simulate a slider on a webpage that behaves non-linearly as shown in the illustration below.
I want to generate a mathematical formula that can represent these states and also give all values in between. I thought this looked like something I can achieve with a log formula, but I could not produce a formula that works.
linear-algebra logarithms
add a comment |Â
up vote
1
down vote
favorite
I am trying to simulate a slider on a webpage that behaves non-linearly as shown in the illustration below.
I want to generate a mathematical formula that can represent these states and also give all values in between. I thought this looked like something I can achieve with a log formula, but I could not produce a formula that works.
linear-algebra logarithms
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am trying to simulate a slider on a webpage that behaves non-linearly as shown in the illustration below.
I want to generate a mathematical formula that can represent these states and also give all values in between. I thought this looked like something I can achieve with a log formula, but I could not produce a formula that works.
linear-algebra logarithms
I am trying to simulate a slider on a webpage that behaves non-linearly as shown in the illustration below.
I want to generate a mathematical formula that can represent these states and also give all values in between. I thought this looked like something I can achieve with a log formula, but I could not produce a formula that works.
linear-algebra logarithms
asked Jul 15 at 9:59
James Okpe George
1455
1455
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
You can achieve this with an exponential function.
First define $x$ as a percentage on the slider.
$f(x)=100times (sqrt[50]10)^x$
If we evaluate $sqrt[50]10$, we get:
$f(x)=100times 1.047129^x$
When $x=50$, $f(50)=1000$. When $x=0$, $f(0)=100$.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
You can achieve this with an exponential function.
First define $x$ as a percentage on the slider.
$f(x)=100times (sqrt[50]10)^x$
If we evaluate $sqrt[50]10$, we get:
$f(x)=100times 1.047129^x$
When $x=50$, $f(50)=1000$. When $x=0$, $f(0)=100$.
add a comment |Â
up vote
1
down vote
accepted
You can achieve this with an exponential function.
First define $x$ as a percentage on the slider.
$f(x)=100times (sqrt[50]10)^x$
If we evaluate $sqrt[50]10$, we get:
$f(x)=100times 1.047129^x$
When $x=50$, $f(50)=1000$. When $x=0$, $f(0)=100$.
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
You can achieve this with an exponential function.
First define $x$ as a percentage on the slider.
$f(x)=100times (sqrt[50]10)^x$
If we evaluate $sqrt[50]10$, we get:
$f(x)=100times 1.047129^x$
When $x=50$, $f(50)=1000$. When $x=0$, $f(0)=100$.
You can achieve this with an exponential function.
First define $x$ as a percentage on the slider.
$f(x)=100times (sqrt[50]10)^x$
If we evaluate $sqrt[50]10$, we get:
$f(x)=100times 1.047129^x$
When $x=50$, $f(50)=1000$. When $x=0$, $f(0)=100$.
answered Jul 26 at 19:48
Peter Y.
387
387
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2852348%2fnon-linear-formula-generate-formula-from-logic%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password