[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] invers cosinus



----- Original Message -----
From: <sslug@sslug>
> Jeg leder efter en invers cosinus funktion, der beregner antal grader
> imellem 0 og 180.
>
> Funktionen double acos(double x) fra math.h c-standard-lib beregner
> arc-cosine of x, er det det samme som invers cosinus? - Den giver output i
> radiantal, der åbenbart kun ligger imellem 0 og 90 grader.

Problemet er at f.eks. både `cos( pi/4 )´ og `cos( 3*pi/4 )´ begge giver det
samme resultat nemlig `0.5´ og når du så tager `acos( 0.5 )´ får du kun det
mindste tal: `pi/4´ for at få det andet skal du sige `pi - acos( 0.5 )´.

For så at få det i grader skal du gange med `180/pi´ ~ `57.2957795131´

DVS at løsningen i grader på `acos( 0.5 )´ er lig med: `acos( 0.5 ) *
180/pi´ eller `(pi - acos( 0.5 )) * 180/pi´

Håber det hjalp lidt
/Kasper

- - - - - -
Get PGP key from www.keyserver.net - Key ID: 0xDE21F438
Name = Kasper Bonne
Fingerprint = B583 0E69 166A 15EF B6F8 B248 7558 DB7C DE21 F438
- - - - - -




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *