forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Math problem

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
nick
Contributor
Contributor


Joined: 15 Aug 2000
Posts: 50
Location: hamburg,nj

PostPosted: Fri Jan 10, 2003 4:18 am    Post subject: Math problem Reply with quote

Hello:
Does anyone know of a dll or a formula for finding the arc cosine of a number. VDS math fuctions do everything else I need -but arc cosine.

There is the icemath dll which would work, but I am having a hard time getting it registered Crying or Very sad .

I am trying to find a quick solution to get my project out-the-door. Any ideas would be appreciated Very Happy .

Thanks in advance.
Nick
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Jan 10, 2003 9:22 am    Post subject: Reply with quote

I'm sure ya know everything's approximate
with pi - including pi itself... Wink

arc cosine formula: (pi/2) - number

You can @format() this to whatever length is needed:
__________________________________________________________________________________________________________________________
Code:

%%pi = 3.14159
%x = 1.1

rem -- get cosine of %x --
%%cosine = @fcos(%x)

rem -- use arc cosine formula to convert cosine back to %x (approx) --
%%arc_cosine = @fsub(@fdiv(%%pi, 2), %%cosine)

INFO "x = "%x@cr()@cr()"cosine of %x = "%%cosine@cr()@cr()"arc cosine of %%cosine = "%%arc_cosine@tab()

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
nick
Contributor
Contributor


Joined: 15 Aug 2000
Posts: 50
Location: hamburg,nj

PostPosted: Fri Jan 10, 2003 12:36 pm    Post subject: Reply with quote

Thanks Mac. I'll try the formula.

Nick
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group