Search found 77 matches
- May 16, 2019 8:27
- Forum: Projects
- Topic: Creating (scientific) plots via gnuplot
- Replies: 68
- Views: 29407
Re: Creating (scientific) plots via gnuplot
This is a very good idea but I think in general it is better to open gnuplot in persistent mode and write to its graphics terminal directly, using the Open Pipe mechanism. Gnuplot terminal, at least on windows, is very impressive (antialiasing, GDI+,...) and very fast. If an old and buggy fbgfx form...
- Feb 08, 2019 13:45
- Forum: Beginners
- Topic: Matrix to string
- Replies: 15
- Views: 2373
Re: Matrix to string
Thank you all for the rapid and extremely helpful responses.
Carlos
Carlos
- Feb 08, 2019 9:16
- Forum: Beginners
- Topic: Matrix to string
- Replies: 15
- Views: 2373
Matrix to string
Dear All, The following simplistic procedure converts a double precision matrix to the string. sub clip_string_uni_matrix (Z() As Double) ' converts matrix to clips string variable, which is global ' terminate with CRLF, also the last line Dim As Integer lbx, ubx, lby, uby, i, j, nx, ny, nxy, nzsize...
- Dec 16, 2018 9:04
- Forum: General
- Topic: Passing fixed-len string as arguments: possible but not recommended?
- Replies: 19
- Views: 2674
Re: Passing fixed-len string as arguments: possible but not recommended?
What's wrong with floating point in FB? Could you be more specific?Boris the Old wrote: ... support for decimal arithmetic (floating point just isn't acceptable for business calculations)...
Carlos
- Nov 19, 2018 22:41
- Forum: Sources, Examples, Tips and Tricks
- Topic: The Mergesort algorithm.
- Replies: 29
- Views: 4330
Re: The Mergesort algorithm.
Which means that either your FB implementation of shellsort is very inefficient, or the C runtime sort is not a shellsort. Indeed. Here is an efficient implementation of ShellSort procedure SortShell(var A: TVector); var ua, N: LongInt; j, k, h: LongInt; ta: double; begin ua := High(A); N := ua; h ...
- Oct 19, 2018 15:00
- Forum: Community Discussion
- Topic: [offtopic] FreePascal
- Replies: 73
- Views: 12192
Re: [offtopic] FreePascal
...The the 32-bit compiler also uses SSE, and the results are in the same magnitude as 64-bit. Speed is one factor, another is accuracy. Please consider the following program (*-----------------------------------------------------------------------*) (* EPSMACH computes the machine accuracy u (1.0+...
- Oct 11, 2018 21:39
- Forum: Community Discussion
- Topic: [offtopic] FreePascal
- Replies: 73
- Views: 12192
Re: [offtopic] FreePascal
@marcov
I am in the process of migrating from fbc to fpc. I hope that Free Pascal is as fast as Free Basic.
Is it also a kind of gcc emitter?
Carlos
I am in the process of migrating from fbc to fpc. I hope that Free Pascal is as fast as Free Basic.
Is it also a kind of gcc emitter?
Carlos
- Sep 06, 2018 7:38
- Forum: Projects
- Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.1.0 June 4, 2023)
- Replies: 981
- Views: 346249
Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated September 5, 2018)
Please consider the pre-compiled versions of FBMath library by Jean Debord. If author agrees, of course.PaulSquires wrote: Please let me know .... if there is anything else that should be included in the package.
Carlos
- Aug 22, 2018 15:05
- Forum: Windows
- Topic: Problem with Draw
- Replies: 5
- Views: 1283
Re: Problem with Draw
Line is affected by View , Draw is not If you change colour of the line which is drawn with Draw command, you will see that it is not visible outside the white rectangle. It means that Draw is affected by View , but so-to-say partly... BTW, on VIEW (GRAPHICS) page Draw command is not mentioned and ...
- Aug 21, 2018 21:36
- Forum: Windows
- Topic: Problem with Draw
- Replies: 5
- Views: 1283
Problem with Draw
Hi All, Minimal program below illustrates the problem #Include "fbgfx.bi" Const red = &HAA0000, grey = &HAAAAAA, white = &HFFFFFF Screenres 500, 500, 32 View (100,50)-(400, 400), white, grey Line (0, 0)-(350, 350),grey,B ' draw line with Line Line (10,10) - (300, 300), red ' dr...
- Aug 20, 2018 11:14
- Forum: Beginners
- Topic: More on closing windows
- Replies: 8
- Views: 2598
More on closing windows
Hi All, I know that we had better open the windows than close, but consider the following code: ' uses WinGUI(12) by Lothar Schirm #Include "WinGUI.bi" #Include "fbgfx.bi" Using FB Dim As HWND Window_Main, Graphic_Screen, Button_Open, Button_Close Dim As MSG msg dim as string dri...
- Aug 17, 2018 20:54
- Forum: Beginners
- Topic: How to close a window
- Replies: 6
- Views: 1739
Re: How to close a window
Yes, it works for me. Thank you,fxm wrote:DestroyWindow(Window_Main) ?
Carlos
- Aug 17, 2018 8:13
- Forum: Beginners
- Topic: How to close a window
- Replies: 6
- Views: 1739
How to close a window
Hi All, I asked this question before but I did not get any answer, so let me ask again here. To be more specific consider the following program ' uses WinGUI(12) by Lothar Schirm #Include "WinGUI.bi" Dim As HWND Window_Main, Label_txt Dim As MSG msg Window_Main = Window_New (100, 100, 300,...
- Aug 13, 2018 14:03
- Forum: Projects
- Topic: Simple WinAPI GUI library
- Replies: 72
- Views: 48954
Re: Simple WinAPI GUI library
Hi All,
Is it possible to close a main window, return to the console and keep program running?
Thanks in advance,
Carlos
Is it possible to close a main window, return to the console and keep program running?
Thanks in advance,
Carlos
- Feb 11, 2018 10:05
- Forum: Documentation
- Topic: Wiki improvements
- Replies: 764
- Views: 287883
Re: Wiki improvements
The tutorial does not clearly explain important differences between ATAN and ATAN2 functionssancho3 wrote: A Brief Introduction To Trigonometry No problems.
(first returns angles in (-pi/2,+pi/2] interval whereas second outputs values in the (-pi,+pi] range, ...).