functions sin and cos

functions sin and cos

Postby AntoninoP » Tue Dec 05, 2017 2:57 pm

Hello,
I am trying to compile a my program that uses the trigonometric functions sin and cos, the problem is the linker says that both are already defined in FiveH32.lib...
I see the file selector.prg has an implementation of them :shock: ...
From my knowledge they are defined in assembler, why is there a re-implementation ? they cover the standard one, I bet they are slower...

Antonino
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

Re: functions sin and cos

Postby Enrico Maria Giordano » Tue Dec 05, 2017 3:29 pm

Can I see a sample of the problem?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: functions sin and cos

Postby Antonio Linares » Tue Dec 05, 2017 3:56 pm

Antonino,

We are going to rename them as FWSIN and FWCOS

thanks for pointing it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: functions sin and cos

Postby Antonio Linares » Tue Dec 05, 2017 4:01 pm

Enrico,

Functions Sin() and Cos() are already defined in Harbour hbct.lib
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: functions sin and cos

Postby AntoninoP » Tue Dec 05, 2017 4:02 pm

Enrico Maria Giordano wrote:Can I see a sample of the problem?

EMG


I am using Visual studio 2017 with harbour:
Image

Antonio Linares wrote:Antonino,

We are going to rename them as FWSIN and FWCOS

thanks for pointing it


Ok, in the meantime I will change my version of FiveWin
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

Re: functions sin and cos

Postby Enrico Maria Giordano » Tue Dec 05, 2017 5:31 pm

Ok, good to know, thank you.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: functions sin and cos

Postby Enrico Maria Giordano » Tue Dec 05, 2017 5:34 pm

How to get the same message from BCC?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: functions sin and cos

Postby nageswaragunupudi » Tue Dec 05, 2017 6:32 pm

xHarbour's ct.lib or Harbour's hbct.lib provides all the functions provided earlier by CA-Tools library in the good old Clipper days.
These functions include Trigonometric functions:

ACOS(), ASIN(), ATAN(), ATN2(), COS(), COSH(), COT(), DTOR(), GETPREC(), SETPREC(), PI(), RTOD(), SIN(), SINH(), TAN(), TANH()
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 96 guests