Search found 508 matches

by jdebord
Apr 20, 2025 8:12
Forum: Game Dev
Topic: procedural spaceships
Replies: 7
Views: 1809

Re: procedural spaceships

Some additional references : https://www.sbgames.org/proceedings2020/ComputacaoShort/207911.pdf https://www.researchgate.net/publication/336086804_Automatic_Generation_of_Game_Content_using_a_Graph-based_Wave_Function_Collapse_Algorithm https://fr.scribd.com/document/420563271/Wfc-is-Constraint-Solv...
by jdebord
Apr 18, 2025 8:04
Forum: Game Dev
Topic: procedural spaceships
Replies: 7
Views: 1809

Re: procedural spaceships

FreePascal programs for Wave Function Collapse :

https://github.com/PascalCorpsman/mini_ ... rlap_model

https://github.com/PascalCorpsman/mini_ ... Tile_model

Could be adapted to FreeBASIC.
by jdebord
Nov 19, 2024 7:22
Forum: Community Discussion
Topic: R.I.P. Thomas E. Kurtz
Replies: 2
Views: 3845

Re: R.I.P. Thomas E. Kurtz

Some precisions about Thomas Kurtz on the Hewlett-Packard calculator forum:

https://www.hpmuseum.org/forum/thread-22723.html

Especially about his work with Einstein.
by jdebord
Jun 24, 2024 14:56
Forum: Sources, Examples, Tips and Tricks
Topic: Numerical integration
Replies: 14
Views: 8018

Re: Numerical integration

Here is a test using the MPFR library according to srvaldez (https://www.freebasic.net/forum/viewtopic.php?t=24110) The library has been compiled for 100 digits precision. The quad routine is called with 10 levels and a tolerance eps = 1E-90 ' ********************************************************...
by jdebord
May 22, 2024 8:58
Forum: Sources, Examples, Tips and Tricks
Topic: Numerical integration
Replies: 14
Views: 8018

Re: Numerical integration

The quad function has a sixth parameter err_est with a default value of 0. To return it, initialize it to a different value. dim as double err_est = 1 function f4(x as double) as double return 1-sqr(x*x-1)/x end function printf(!"integrate(1-sqr(x*x-1)/x, x=1..+inf) = %.15g\n", quad(@f4, 1...
by jdebord
May 20, 2024 8:24
Forum: Sources, Examples, Tips and Tricks
Topic: Numerical integration
Replies: 14
Views: 8018

Numerical integration

Here is my FreeBASIC version of an integration program in C by Robert van Engelen. It is posted here with permission of the original author. ' ************************************************************************ ' Numerical integration by Tanh-Sinh, Sinh-Sinh and Exp-Sinh formulas ' ************...
by jdebord
May 19, 2024 9:58
Forum: Sources, Examples, Tips and Tricks
Topic: yet another gamma function implementation
Replies: 1
Views: 3072

Re: yet another gamma function implementation

Thank you for the reference. I have downloaded it.

For special functions I use mainly the MPFR library (thanks to your wonderful FreeBASIC binding), but it is always interesting to have new approximations.
by jdebord
Oct 27, 2023 8:58
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 435
Views: 249534

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: 3786

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: 9015

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: 9015

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: 2367

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: 2367

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: 2367

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: 2367

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.