Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" Newsgroups: comp.lang.c,comp.arch Subject: Re: Radians Or Degrees? Date: Fri, 15 Mar 2024 14:26:56 -0700 Organization: A noiseless patient Spider Lines: 54 Message-ID: References: <20240222015920.00000260@yahoo.com> <20240222233838.0000572f@yahoo.com> <3b2e86cdb0ee8785b4405ab10871c5ca@www.novabbs.org> <936a852388e7e4414cb7e529da7095ea@www.novabbs.org> <20240314112655.000011f8@yahoo.com> <87wmq32o26.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 15 Mar 2024 21:26:57 -0000 (UTC) Injection-Info: dont-email.me; posting-host="ed612d4ce44e1af227fa0b762e20f588"; logging-data="2604785"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18l2H20FMNwmE6JzeA4ncJU2QcyBT0+kSk=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:5OSjJ1ylIjXX+8Ve+ZCfiV/TDO0= In-Reply-To: <87wmq32o26.fsf@nosuchdomain.example.com> Content-Language: en-US Bytes: 3265 On 3/15/2024 2:16 PM, Keith Thompson wrote: > "Chris M. Thomasson" writes: >> On 3/15/2024 3:23 AM, Terje Mathisen wrote: >>> Michael, I for the main part agree with you here, i.e. calculating >>> sin(x) with x larger than 2^53 or so, is almost certainly stupid. >> [...] >> >> ;^D tooooooo big. :^) >> >> Now, wrt the results, arbitrary precision for trig is useful, in >> say... Deep fractal zooms... >> >> Zooming in really deep in say something like this, well the precision >> of trig can become an issue: >> >> https://paulbourke.net/fractals/multijulia/ >> >> Trig would be used, say, in rectangular to-from polar forms wrt >> getting the n-ary roots of a complex number? > > I can see how computing sin(x) with high precision for "reasonable" > values of x would be useful, but does any of that benefit from being > able to compute sin(2^53) accurately? Nope. :^) Fwiw, my fractals deal with zooming in and the numbers comprising their initial state is tiny compared to 2^53. For instance take these initial states for my multijulia fractal: ____________ c0 = {0.5,0.0}, c1 = {-5.5,0.0} c0 = {0.0,1.0}, c1 = {0.0,-1.0} c0 = {0.726514,0.240242}, c1 = {0.171039,0.235043} c0 = {-1.444991,0.139179}, c1 = {-0.063294,-1.401774} c0 = {1,0}, c1 = {-1,0} c0 = {-.75, .06 }, c1 = {-.45, .6 } c0 = {-1,0}, c1 = {1,0}, c2 = {0,-1}, c3 = {0,1} ____________ Notice how the numbers are small? However, if we zoom in enough, then 2^53 might become an issue.. > (Since I'm posting to > comp.lang.c, I'll mention that "^" is meant to be exponentation, not > bitwise xor.) > Indeed.