Search found 501 matches

by jdebord
Oct 27, 2023 8:58
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 433
Views: 197251

Re: FLTK-C-1.3.3 for FreeBASIC

Hello silverman ( I assume you are silverman from the Panoramic forum ? ) The position of the widget inside a group is defined relative to the main window, not the group. So you have to modiffy your coordinates: Fl_GroupBegin (Group_radio) Button_radio_red = Fl_Radio_Round_ButtonNew (10 + GNX, 5 + G...
by jdebord
Aug 17, 2022 8:16
Forum: Sources, Examples, Tips and Tricks
Topic: Pi Chudnovsky
Replies: 12
Views: 2856

Re: Pi Chudnovsky

My contributions (using GMP + MPFR) : ' ------------------------------------------------------------------- ' Compute Pi by Chudnovsky's formula ' https://en.wikipedia.org/wiki/Chudnovsky_algorithm ' ------------------------------------------------------------------- ' Uses GMP and MPFR ' https://ww...
by jdebord
Jul 23, 2022 6:13
Forum: Libraries & Headers
Topic: FBMath update
Replies: 22
Views: 7370

Re: FBMath update

The libfbmath.a file included in the FBMath distribution is for Windows only. So, it's uncompatible with Linux. You must recompile the library on Linux. Go to the modules subfolder of the FBMath distribution and run the compil.sh script. You will obtain the correct libfbmath.a, which then must be pl...
by jdebord
Jul 22, 2022 13:47
Forum: Libraries & Headers
Topic: FBMath update
Replies: 22
Views: 7370

Re: FBMath update

I have tested with Ubuntu 22.04 and FB 1.0.9 What is your problem exactly ? FBMath is not included in the FB distribution. You must download it from SourceForge : sourceforge.net/projects/fbmath Then you must recompile it for Linux. There are compilation scripts in the "modules" subfolder.
by jdebord
May 27, 2022 6:35
Forum: Sources, Examples, Tips and Tricks
Topic: Old Demo from Amstrad CPC 6128 Disk's
Replies: 8
Views: 1615

Re: Old Demo from Amstrad CPC 6128 Disk's

Thank you jepalza :)

I will check the emulator. It would be nice to convert some of these old BASIC games to FB, using the library.
by jdebord
May 24, 2022 18:02
Forum: Sources, Examples, Tips and Tricks
Topic: Old Demo from Amstrad CPC 6128 Disk's
Replies: 8
Views: 1615

Re: Old Demo from Amstrad CPC 6128 Disk's

For those who need only the Amstrad graphics, I have made a specific library : amsgraph.zip It's a static library, distributed as source code, with english documentation and 15 sample programs. https://i14.servimg.com/u/f14/16/88/76/65/fonts11.png https://i14.servimg.com/u/f14/16/88/76/65/caredi11.p...
by jdebord
May 13, 2022 6:02
Forum: Sources, Examples, Tips and Tricks
Topic: Old Demo from Amstrad CPC 6128 Disk's
Replies: 8
Views: 1615

Re: Old Demo from Amstrad CPC 6128 Disk's

How work it? With DLL? You can download it here: https://www.unilim.fr/pages_perso/jean.debord/fbcroco/fbcroco.htm There is a DLL which implements several procedures in FB for most of the CPC commands (MODE, ORIGIN, PEN, PAPER, MOVE, PLOT ...) You have also access to the Amstrad font and all its gr...
by jdebord
May 12, 2022 7:10
Forum: Sources, Examples, Tips and Tricks
Topic: Old Demo from Amstrad CPC 6128 Disk's
Replies: 8
Views: 1615

Re: Old Demo from Amstrad CPC 6128 Disk's

There is a project named "Crocodile Basic" on the PANORAMIC Basic forum to revive the CPC BASIC, using FB as the compiler.

https://panoramic.1fr1.net/f38-crocodile-basic

It's all in french, though.
by jdebord
Jun 05, 2021 9:54
Forum: General
Topic: gmp 6.2.1 and mpfr 4.1.0
Replies: 52
Views: 34614

Re: gmp 6.2.1 and mpfr 4.1.0

Thank you srvaldez ! Here is another example : Pi by the AGM method. ' ------------------------------------------------------------------- ' Compute Pi by Arithmetic-Geometric Mean (AGM) ' https://en.wikipedia.org/wiki/Arithmetic–geometric_mean ' -----------------------------------------------------...
by jdebord
May 28, 2021 14:34
Forum: General
Topic: gmp 6.2.1 and mpfr 4.1.0
Replies: 52
Views: 34614

Re: gmp 6.2.1 and mpfr 4.1.0

Compute Pi by the method of Chudnovsky See : https://en.wikipedia.org/wiki/Chudnovsky_algorithm #include once "gmp.bi" #include once "mpfr.bi" const Digits = 100 'we need to set mpfr_digits before including the overloded operators dim shared as long mpfr_digits_precision = Digits...
by jdebord
May 26, 2021 8:54
Forum: General
Topic: gmp 6.2.1 and mpfr 4.1.0
Replies: 52
Views: 34614

Re: gmp 6.2.1 and mpfr 4.1.0

Number of primes less than x = 10^i for i = 1..25 See : 'https://en.wikipedia.org/wiki/Prime_number_theorem Exact value and 2 approximations : x / log(x) and Li(x) It seems that the logarithm integral function Li(x) is absent from MPFR, so I used Eint(log(x)) instead. ''=============================...
by jdebord
May 07, 2021 9:27
Forum: General
Topic: gmp 6.2.1 and mpfr 4.1.0
Replies: 52
Views: 34614

Re: gmp 6.2.1 and mpfr 4.1.0

It seems that the Beta function is lacking, both in mpfr.bi and mpfr-fb.bi So, I tried to add it. In mpfr.bi, add the line : declare function mpfr_beta(byval as mpfr_ptr, byval as mpfr_srcptr, byval as mpfr_srcptr, byval as mpfr_rnd_t) as long In mpfr-fb.bi, add the lines : function Beta(byref lhs a...
by jdebord
Apr 27, 2021 15:12
Forum: General
Topic: gmp 6.2.1 and mpfr 4.1.0
Replies: 52
Views: 34614

Re: gmp 6.2.1 and mpfr 4.1.0

So, OPERATOR is for the functions already defined in FB (Sin, Cos ...) and FUNCTION for the new ones (Sinh, Cosh ...).

I should have known !

Thanks again !
by jdebord
Apr 27, 2021 15:08
Forum: Libraries Questions
Topic: Fltk-c question
Replies: 4
Views: 2202

Re: Fltk-c question

Yes, the dimensions of a widget are given by the function Fl_WidgetGetW and Fl_WidgetGetH

See the examples given with the FLTK package.
by jdebord
Apr 26, 2021 7:05
Forum: General
Topic: gmp 6.2.1 and mpfr 4.1.0
Replies: 52
Views: 34614

Re: gmp 6.2.1 and mpfr 4.1.0

Thank you srvaldez. Yes, 3.33 is practical :)

I have another question : is there a reason to declare some functions as operators (e. g. Acos) and others as functions (e. g. Acosh) ?