Deutsch   English   Français   Italiano  
<ut2ef1$2ffnh$2@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
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: <ut2ef1$2ffnh$2@dont-email.me>
References: <ur5trn$3d64t$1@dont-email.me> <ur5v05$3ccut$1@dont-email.me>
 <20240222015920.00000260@yahoo.com> <ur69j9$3ftgj$3@dont-email.me>
 <ur86eg$1aip$1@dont-email.me> <ur88e4$1rr1$5@dont-email.me>
 <ur8a2p$2446$1@dont-email.me> <ur8ctk$2vbd$2@dont-email.me>
 <20240222233838.0000572f@yahoo.com>
 <3b2e86cdb0ee8785b4405ab10871c5ca@www.novabbs.org>
 <ur8nud$4n1r$1@dont-email.me>
 <936a852388e7e4414cb7e529da7095ea@www.novabbs.org>
 <ur9qtp$fnm9$1@dont-email.me> <20240314112655.000011f8@yahoo.com>
 <ut17ji$27n6b$1@dont-email.me> <ut2csb$2fe4u$1@dont-email.me>
 <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" <chris.m.thomasson.1@gmail.com> 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.