POV-Ray : Newsgroups : povray.advanced-users : Search for a value : Re: Search for a value Server Time
29 Jul 2024 16:25:39 EDT (-0400)
  Re: Search for a value  
From: John VanSickle
Date: 24 Aug 2001 14:02:07
Message: <3B869796.2764C7C7@hotmail.com>
Rune wrote:
> 
> If I have an unknown function...
> 
> F(X)
> 
> ...and I only know the following...
> 
> F(0) = 0
> 
> F(1) = 1
> 
> F(X) increases when X increases
> 
> ...what is the most efficient (fast) method to find out which X value
> (between 0 and 1) returns a given value F(X) (also between 0 and 1) ?
> 
> I have tried a method that keeps guessing in the middle of a range,
> and each guess divides the range in two until the guess comes close
> enough. However, I'd like to learn about methods that parses faster.

If you don't know the function, how do you evaluate it at X?

Regards,
John
-- 
ICQ: 46085459


Post a reply to this message

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