Search found 83 matches: math

Return to advanced search

Re: Interesting discussion with ChtGPT

... makes a big difference in how effective its answers will be. When you're dealing with specific things like converting numbers between bases in math, it's crucial to clearly state the bases you're starting with and switching to. Think of prompt engineering as the art of crafting your question ...
by Otto
Tue Nov 07, 2023 11:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Interesting discussion with ChtGPT
Replies: 15
Views: 887

Re: chatGPT writes and executes Harbour code !!!

... - nTemp   ENDIF   RETURN nTemp the chatGpt have made also another function But I not understood how compile it #include "math.hbp" FUNCTION distance(n1, n2, n3) local nMin := math.min(n1, n2, n3) local nMax := math.max(n1, n2, n3) local nTemp := (nMax - nMin) % 90 ...
by Silvio.Falconi
Wed Dec 21, 2022 9:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: chatGPT writes and executes Harbour code !!!
Replies: 35
Views: 2727

Re: intercept repeated values in an array

... three numbers because in the Italian lottery three numbers are equal to three the calculations are: 1) cyclometric sum 2) cyclometric distance 3) math addition 4) mathematical distance for the cyclometric sum it is always necessary to subtract 90 if the sum exceeds 90 The cyclometric distance ...
by Silvio.Falconi
Wed Oct 26, 2022 8:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: intercept repeated values in an array
Replies: 5
Views: 283

Re: cyclometric circle

...      PolyPolygon( ::GetDC(),aPoints)     ::ReleaseDC()      return nil  there were some math error, other errors because on FiveWin sometime parameter are nCol,nRow other times nRow,nCol :roll:
by AntoninoP
Tue Jul 12, 2022 3:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cyclometric circle
Replies: 46
Views: 2964

Problem with date - I not understood

... column 5 is a code that determines the type of season 02 is low 01 is high you can observe in column 3 the total of the days if you do a little math the total is 56 the customer insists that the days are actually 55 because he used the windows calculator you see below https://i.postimg.cc/zGLZBrR4/calc.png ...
by Silvio.Falconi
Sun Jun 20, 2021 2:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with date - I not understood
Replies: 4
Views: 647

Re: Funciones C en Harbour

... denominada "C_2EXP()" con el proposito de elevar a un exponente n el numero 2 : #pragma BEGINDUMP #include <hbapi.h> #include <math.h> HB_FUNC( C_2EXP ) { long long n, nResult; n = hb_parnll(1); nResult = pow(2,n); hb_retnll(nResult); } #pragma ENDDUMP Desde tu programa la ...
by George
Mon Feb 08, 2021 4:21 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funciones C en Harbour
Replies: 19
Views: 1564

Re: Math E and function Sigmoid()

Example function Main()   local n   SET DECIMALS TO 10   for n = 1 to 10      ? Sigmoid( n ), dSigmoid( n )   nextreturn nilfunction Sigmoid( nValue )return 1 / ( 1 + Math_E()  ^ -nValue )function dSigmoid( nValue ) // returns the derivative of...
by Antonio Linares
Fri Oct 02, 2020 9:25 am
 
Forum: Utilities / Utilidades
Topic: Math E and function Sigmoid()
Replies: 7
Views: 1770

Re: Math E and function Sigmoid()

function dSigmoid( n ) --> returns the derivative of the sigmoid function

Code: Select all  Expand view
function dSigmoid( nValue )

   local n := Sigmoid( nValue )

return n * ( 1 - n )
by Antonio Linares
Fri Oct 02, 2020 9:19 am
 
Forum: Utilities / Utilidades
Topic: Math E and function Sigmoid()
Replies: 7
Views: 1770

Re: Encode Base16

Baxajaun: En este enlace hacen la conversion: https://www.mathsisfun.com/binary-decimal-hexadecimal-converter.html Y avanzando mas en el tema, te comento que en java existe una clase llamada BigInteger() que hace la conversion facilmente https://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html ...
by RSalazarU
Wed Jan 30, 2019 11:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Encode Base16
Replies: 8
Views: 1686

Re: Switching to Microsoft Compiler.

... these error: ... libucrt.lib(pow.obj) : warning LNK4006: __CIpow already defined in FiveHMX.lib(HARBOUR.obj); second definition ignored rtl.lib(math.obj) : warning LNK4006: __matherr already defined in libcmt.lib(matherr.obj); second definition ignored FiveHMX.lib(FWMARIA.obj) : error LNK2019: ...
by fraxzi
Sat Jul 28, 2018 1:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Switching to Microsoft Compiler.
Replies: 12
Views: 1995

Re: Funcion I2BIN(n)

NTOC( nInteger ( or cHex ), ; nBase, ; // 2 to 36. Default 10 nLength, ; cPadChar ) // default Space. nBase (also known as RADIX in math) is for Binary : 2, Octal : 8, Decimal : 10, Hex : 16. We can also choose any other number. Example ? NTOC( 312, 2, 16, "0" ) --> "0000000100111000"
by nageswaragunupudi
Fri Jun 15, 2018 9:31 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funcion I2BIN(n)
Replies: 10
Views: 1582

Re: Compilar código Harbour con gcc en 64 BITS

... undefined reference to `__GSHandlerCheck' C:\harbour64\lib/hbrtl.lib(math.obj):(.text$mn+0x123): undefined reference to `hb_itemDo' C:\harbour64\lib/hbrtl.lib(inkey.obj):(.text$mn+0x45): undefined reference to `__security_check_cookie' ...
by Verhoven
Sat May 26, 2018 11:14 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Compilar código Harbour con gcc en 64 BITS
Replies: 8
Views: 1946

Re: Strange error making some calculations

Clipper/Harbour uses floating point math which is not always precise when converted to decimals. ? tot < 0.5 // .T. So, tot:= round( a1 + a2 + a3 + a4, 2 )iva:=Round( tot*10/100,2)? tot                   // 0.05 correct? ...
by nageswaragunupudi
Thu Mar 22, 2018 9:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange error making some calculations
Replies: 9
Views: 1458

Re: Xbrowse or Report Bug

Silvio,

This looks like some kind of math bug in Harbour/xHarbour that we just found in you other problem.

I workaround might be to convert all the numbers to text when importing them to the xBrowse and also right justify the column.

James
by James Bott
Mon Jan 15, 2018 9:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse or Report Bug
Replies: 10
Views: 1693
Next

Return to advanced search