Logarithmic function that outputs [0.25, 1] when $x$ is [1,$n$] [closed]












1












$begingroup$


I'm looking for a formula that produces a logarithmic curve that meets the following conditions:



Given a set of positive integers from 1 to $n$, produce a logarithmic function that outputs a $y$ value of 0.25 when $x$ = 1 and the a $y$ value of 1 when $x$ = $n$. I'd also like to control the curvature of the logarithmic term.



Note:
I don't have a maths background so may not be using the correct terms.










share|cite|improve this question









$endgroup$



closed as off-topic by Eevee Trainer, user91500, clathratus, metamorphy, Martín Vacas Vignolo Dec 30 '18 at 12:38


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Eevee Trainer, user91500, clathratus

If this question can be reworded to fit the rules in the help center, please edit the question.





















    1












    $begingroup$


    I'm looking for a formula that produces a logarithmic curve that meets the following conditions:



    Given a set of positive integers from 1 to $n$, produce a logarithmic function that outputs a $y$ value of 0.25 when $x$ = 1 and the a $y$ value of 1 when $x$ = $n$. I'd also like to control the curvature of the logarithmic term.



    Note:
    I don't have a maths background so may not be using the correct terms.










    share|cite|improve this question









    $endgroup$



    closed as off-topic by Eevee Trainer, user91500, clathratus, metamorphy, Martín Vacas Vignolo Dec 30 '18 at 12:38


    This question appears to be off-topic. The users who voted to close gave this specific reason:


    • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Eevee Trainer, user91500, clathratus

    If this question can be reworded to fit the rules in the help center, please edit the question.



















      1












      1








      1





      $begingroup$


      I'm looking for a formula that produces a logarithmic curve that meets the following conditions:



      Given a set of positive integers from 1 to $n$, produce a logarithmic function that outputs a $y$ value of 0.25 when $x$ = 1 and the a $y$ value of 1 when $x$ = $n$. I'd also like to control the curvature of the logarithmic term.



      Note:
      I don't have a maths background so may not be using the correct terms.










      share|cite|improve this question









      $endgroup$




      I'm looking for a formula that produces a logarithmic curve that meets the following conditions:



      Given a set of positive integers from 1 to $n$, produce a logarithmic function that outputs a $y$ value of 0.25 when $x$ = 1 and the a $y$ value of 1 when $x$ = $n$. I'd also like to control the curvature of the logarithmic term.



      Note:
      I don't have a maths background so may not be using the correct terms.







      graphing-functions






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 29 '18 at 17:40









      JoeJoe

      61




      61




      closed as off-topic by Eevee Trainer, user91500, clathratus, metamorphy, Martín Vacas Vignolo Dec 30 '18 at 12:38


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Eevee Trainer, user91500, clathratus

      If this question can be reworded to fit the rules in the help center, please edit the question.







      closed as off-topic by Eevee Trainer, user91500, clathratus, metamorphy, Martín Vacas Vignolo Dec 30 '18 at 12:38


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Eevee Trainer, user91500, clathratus

      If this question can be reworded to fit the rules in the help center, please edit the question.






















          1 Answer
          1






          active

          oldest

          votes


















          2












          $begingroup$

          First you can try to think of a logarithmic function that outputs $[0, 0.75]$ on $[1,n]$, you just need to add the constant $+0.25$ to correct it afterwards.



          With this setup we see that $ln(x) = 0$ for $x=1$ so the lower part of the interval is already right. Now we want to correct the logarithm so that $ln(n) = 0.75$. For that we can add a constant factor that would scale the logarithm like $aln(x)$. This would also make sure that we don't influence the value for when $x=1$ since this would still be $0$ whatever $a$ is.



          Now we just need to solve $aln(n) = 0.75$ and get $a = 0.75/ln(n)$.



          I let you put all the parts together.






          share|cite|improve this answer









          $endgroup$




















            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2












            $begingroup$

            First you can try to think of a logarithmic function that outputs $[0, 0.75]$ on $[1,n]$, you just need to add the constant $+0.25$ to correct it afterwards.



            With this setup we see that $ln(x) = 0$ for $x=1$ so the lower part of the interval is already right. Now we want to correct the logarithm so that $ln(n) = 0.75$. For that we can add a constant factor that would scale the logarithm like $aln(x)$. This would also make sure that we don't influence the value for when $x=1$ since this would still be $0$ whatever $a$ is.



            Now we just need to solve $aln(n) = 0.75$ and get $a = 0.75/ln(n)$.



            I let you put all the parts together.






            share|cite|improve this answer









            $endgroup$


















              2












              $begingroup$

              First you can try to think of a logarithmic function that outputs $[0, 0.75]$ on $[1,n]$, you just need to add the constant $+0.25$ to correct it afterwards.



              With this setup we see that $ln(x) = 0$ for $x=1$ so the lower part of the interval is already right. Now we want to correct the logarithm so that $ln(n) = 0.75$. For that we can add a constant factor that would scale the logarithm like $aln(x)$. This would also make sure that we don't influence the value for when $x=1$ since this would still be $0$ whatever $a$ is.



              Now we just need to solve $aln(n) = 0.75$ and get $a = 0.75/ln(n)$.



              I let you put all the parts together.






              share|cite|improve this answer









              $endgroup$
















                2












                2








                2





                $begingroup$

                First you can try to think of a logarithmic function that outputs $[0, 0.75]$ on $[1,n]$, you just need to add the constant $+0.25$ to correct it afterwards.



                With this setup we see that $ln(x) = 0$ for $x=1$ so the lower part of the interval is already right. Now we want to correct the logarithm so that $ln(n) = 0.75$. For that we can add a constant factor that would scale the logarithm like $aln(x)$. This would also make sure that we don't influence the value for when $x=1$ since this would still be $0$ whatever $a$ is.



                Now we just need to solve $aln(n) = 0.75$ and get $a = 0.75/ln(n)$.



                I let you put all the parts together.






                share|cite|improve this answer









                $endgroup$



                First you can try to think of a logarithmic function that outputs $[0, 0.75]$ on $[1,n]$, you just need to add the constant $+0.25$ to correct it afterwards.



                With this setup we see that $ln(x) = 0$ for $x=1$ so the lower part of the interval is already right. Now we want to correct the logarithm so that $ln(n) = 0.75$. For that we can add a constant factor that would scale the logarithm like $aln(x)$. This would also make sure that we don't influence the value for when $x=1$ since this would still be $0$ whatever $a$ is.



                Now we just need to solve $aln(n) = 0.75$ and get $a = 0.75/ln(n)$.



                I let you put all the parts together.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Dec 29 '18 at 18:01









                ZubzubZubzub

                3,8941922




                3,8941922















                    Popular posts from this blog

                    Bundesstraße 106

                    Verónica Boquete

                    Ida-Boy-Ed-Garten