[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Fun math puzzle: cin(X)
- From: Rodrigo Azevedo <rodrigoams@...>
- Date: Thu, 4 Apr 2019 20:54:59 -0400
a = false
cin = function(x)
if not a then a = (math.sin(x)/x)^(1.0/3.0) end
return a*x
end
x = 2.019
print(cin(x),'check:',cin(cin(cin(x)))/math.sin(x))
> 1.543010716654 check: 1.0
:)
Em qua, 3 de abr de 2019 às 19:14, Albert Chan
<albertmcchan@yahoo.com> escreveu:
>
> Comes across a fun math puzzle. :-)
>
> Design a function cin(X), such that cin(cin(cin(X))) = sin(X)
>
> cin(X) must be smooth function, and at least 10 digits accurate.
>
> In other words, cin(cin(cin(X))) / sin(X) = 1.00000 00000
>
> What is the value of cin(2.019) ?
>
>
--
Rodrigo Azevedo Moreira da Silva