Search found 50 matches: cos

Searched query: cos

by Armando
Thu Jan 16, 2025 6:58 pm
Forum: FiveWin para Harbour/xHarbour
Topic: No pintar totales finales, cómo?
Replies: 2
Views: 655

No pintar totales finales, cómo?

... SIZE 07 RIGHT PICTURE "@Z 99,999.99"
COLUMN TITLE "Importe","De Entrada" DATA IIF(oRsDet:Fields("HDR_EOS"):Value == 1,;
oRsDet:Fields("DET_COS"):Value,"") SIZE 10 RIGHT PICTURE "@Z 999,999,999.99" TOTAL
COLUMN TITLE "Cantidad","De Salida" DATA IIF(oRsDet:Fields("HDR_EOS"):Value == 2 ...
by AntoninoP
Wed Jul 13, 2022 8:50 am
Forum: FiveWin for Harbour/xHarbour
Topic: cyclometric circle
Replies: 11
Views: 7579

Re: cyclometric circle

... the middle of circle , the number 90 must be on the top of circle, the number 45 on the Bottom, please the First picture i published

swap sin and cos and change signs until it works

     nAngolo := 2* Pgreco() / nTotalNumbers * ( nI - 1 )      nY ...
by nageswaragunupudi
Sat Oct 19, 2019 8:31 pm
Forum: FiveWin for Harbour/xHarbour
Topic: LINK ERROR: 19.09
Replies: 11
Views: 2108

Re: LINK ERROR: 19.09

FWH was using the trigonometric functions PI(),COS(),SIN(), etc for a very long time in classes TGraph, XImage and Tselector. Probably you might have never used any of these classes in your programs. Had you used any of these classes, you would have faced this issue with earlier versions also.

In the ...
by TimStone
Thu Oct 17, 2019 10:55 pm
Forum: FiveWin for Harbour/xHarbour
Topic: LINK ERROR: 19.09
Replies: 11
Views: 2108

LINK ERROR: 19.09

... Microsoft Visual Studio most recent version, FWH most recent version ). I get the following errors:
hbct.lib(trig.obj) : error LNK2005: _HB_FUN_ACOS already defined in g_server.obj
hbct.lib(trig.obj) : error LNK2005: _HB_FUN_ASIN already defined in g_server.obj
hbct.lib(trig.obj) : error LNK2005 ...
by jnavas
Mon May 06, 2019 11:10 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Reconocer el sistema operativo en uso
Replies: 5
Views: 918

Re: Reconocer el sistema operativo en uso

LOCAL cOs:=GETENV("OS")

? cOs // Windows_NT
by Busmatic_wpb
Sat Mar 31, 2018 4:49 am
Forum: FiveWin para Harbour/xHarbour
Topic: buscar minimo valor en un arreglo bidimensional
Replies: 2
Views: 737

buscar minimo valor en un arreglo bidimensional

... que calcula distancias gracias a:

function miDistancia( lat1, lng1, lat2, lng2 )
**//** Hecho por xmanuel » Dom Ene 21, 2018 7:13 pm
return( acos( sin( dtor( lat1 ) ) * sin( dtor( lat2 ) ) + cos( dtor( lat1 ) ) * cos( dtor( lat2 ) ) * cos( dtor( lng1 ) - dtor( lng2 ) ) ) * 6371 )

RETURN

A ...
by nageswaragunupudi
Mon Jan 22, 2018 12:14 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Calculo de distancias por GPS con funciones del MYSQL
Replies: 7
Views: 2464

Re: Calculo de distancias por GPS con funciones del MYSQL

SELECT (acos (sin (radians (LATITUD_1)) * sin (radians (LATITUD_2)) +
cos (radians (LATITUD_1)) * cos (radians (LATITUD_2)) *
cos (radians ( LONGITUD_1) - radians (LONGITUDE_2))) * 6378) as
distancePoint1Point2;

Should Earth's radius be taken as 6371 instead of 6378 ?
by Busmatic_wpb
Sat Jan 20, 2018 11:15 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Calculo de distancias por GPS con funciones del MYSQL
Replies: 7
Views: 2464

Calculo de distancias por GPS con funciones del MYSQL

... STR(Op:GPGGA_cLong))

// dos datos de prueba
Latitud2:="10.203574"
Longitud2:="-83.782274"

try

oP:GpSDistancia := oCon:oKon:Query("SELECT (acos(sin(radians('"+Latitud1+"')) * sin(radians('"+Latitud2+"')) + cos(radians('"+Latitud1+"')) * cos(radians('"+Latitud2+"')) *
cos(radians ...
by nageswaragunupudi
Tue Dec 05, 2017 6:32 pm
Forum: FiveWin for Harbour/xHarbour
Topic: functions sin and cos
Replies: 7
Views: 1003

Re: functions sin and cos

... 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()
by Enrico Maria Giordano
Tue Dec 05, 2017 5:34 pm
Forum: FiveWin for Harbour/xHarbour
Topic: functions sin and cos
Replies: 7
Views: 1003

Re: functions sin and cos

How to get the same message from BCC?

EMG
by Enrico Maria Giordano
Tue Dec 05, 2017 5:31 pm
Forum: FiveWin for Harbour/xHarbour
Topic: functions sin and cos
Replies: 7
Views: 1003

Re: functions sin and cos

Ok, good to know, thank you.

EMG
by AntoninoP
Tue Dec 05, 2017 4:02 pm
Forum: FiveWin for Harbour/xHarbour
Topic: functions sin and cos
Replies: 7
Views: 1003

Re: functions sin and cos

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
by Antonio Linares
Tue Dec 05, 2017 4:01 pm
Forum: FiveWin for Harbour/xHarbour
Topic: functions sin and cos
Replies: 7
Views: 1003

Re: functions sin and cos

Enrico,

Functions Sin() and Cos() are already defined in Harbour hbct.lib
by Antonio Linares
Tue Dec 05, 2017 3:56 pm
Forum: FiveWin for Harbour/xHarbour
Topic: functions sin and cos
Replies: 7
Views: 1003

Re: functions sin and cos

Antonino,

We are going to rename them as FWSIN and FWCOS

thanks for pointing it
by Enrico Maria Giordano
Tue Dec 05, 2017 3:29 pm
Forum: FiveWin for Harbour/xHarbour
Topic: functions sin and cos
Replies: 7
Views: 1003

Re: functions sin and cos

Can I see a sample of the problem?

EMG