min-function gives wrong anwers

Heikki Höijer shared this problem 3 years ago
New

Hello,

try this (g5 or g6):

f(x)=sin(x)min(f,0.4*pi,0.6*pi)

I get (1.645, 0.9973) - the right min-value is 0.9511.

(With two decimals, you get 1, which is the max-value!)

min(f,0.4*pi-n*0.01,0.6+n*0.01) gives also wrong answers, untill n=5, then I get the right answer.

If the interval is not symmetric, then I get right value. ("not symmetric" = "mid point is not 0.5*pi")

t. Heikki Höijer

© 2023 International GeoGebra Institute