POV-Ray : Newsgroups : povray.general : How to find the maximum value of a function? : Re: How to find the maximum value of a function? Server Time
30 Jul 2024 16:15:20 EDT (-0400)
  Re: How to find the maximum value of a function?  
From: SharkD
Date: 16 Nov 2008 03:00:01
Message: <web.491fd1f5c0004fc9a3b1deab0@news.povray.org>
"SharkD" <nomail@nomail> wrote:
> "SharkD" <nomail@nomail> wrote:
> > I've worked things out in excel so that all I need to do is find the equation of
> > this curve:
> >
> > http://img266.imageshack.us/img266/4454/curvepo9.png
> >
> > Unfortunately, I can't figure out what kind of curve it is. It kind of looks
> > like a catenary.
> >
> > -Mike
>
> This curve (a catenary) seems to fit the points fairly closely:
>
> f(x) = 0.2 cosh(x / 0.76) + 0.2
>
> -Mike

Woops! I forgot to scale the function properly. Here's a fixed version:

f(x) = 0.07 cosh(x / 0.28) - 0.07

-Mike


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.