Search found 7936 matches

by dodicat
Jul 14, 2007 18:01
Forum: General
Topic: BIGFACTORIAL memory use repaired
Replies: 0
Views: 1266

BIGFACTORIAL memory use repaired

Thanks to those who who assisted with this function. I have repaired the memory problem. It runs reasonably fast using two intact functions. Declare Function bignum(Byref firstnum As String,_ Byref operation As String,_ Byref secondnum As String) As String Declare Function bigfactorial(Byref maxany ...
by dodicat
Jul 13, 2007 21:49
Forum: General
Topic: BIGFACTORIAL and memory use
Replies: 6
Views: 2080

The simplest string operations have the problem of using temporal strings , this is why that much room and time is required. If you were doing your calculations in a single predimensioned string the thing would be faster. Here is a code posted by RocktheSchock in the short sources contest we had a ...
by dodicat
Jul 09, 2007 19:56
Forum: General
Topic: BIGFACTORIAL and memory use
Replies: 6
Views: 2080

BIGFACTORIAL and memory use

Here are a few lines of code for a full factorial given as a string. It seems to use up a lot of memory, it doesn't seem to run out of stack, but factorial 1000 starts to use my page/swap file in windows/linux. I've used the simplest of string operations, no arrays, no pointers Declare Function Fac_...
by dodicat
Nov 16, 2006 22:36
Forum: Windows
Topic: Scientific plotting libraries for FB?
Replies: 11
Views: 4031

Re: Scientific plotting libraries for FB?

I'd like to evaluate a couple of GPL'd scientific plotting libraries (like 'dislin' - http://www.mps.mpg.de/dislin/ - for example) that I can integrate into my FB programs as a dll. My intention is to plot data acquisition results in real time. I already have communications going with a Keithley 20...
by dodicat
Oct 22, 2006 19:38
Forum: Libraries Questions
Topic: mathplus.bas -2000+ lines
Replies: 7
Views: 3832

Re: mathplus.bas include file with eval function parser

It seems that the source code has been truncated at line 1731 Perhaps you could pack it into a zip file and place it on a website ? If you prefer, I could place it on the FBMath mailing list web site ( http://tech.groups.yahoo.com/group/fbmathlib/files/ ). There are already two parsers available :)...
by dodicat
Oct 03, 2006 12:27
Forum: Libraries Questions
Topic: mathplus.bas -2000+ lines
Replies: 7
Views: 3832

mathplus.bas include file with eval function parser

It seems that the source code has been truncated at line 1731 Perhaps you could pack it into a zip file and place it on a website ? If you prefer, I could place it on the FBMath mailing list web site ( http://tech.groups.yahoo.com/group/fbmathlib/files/ ). There are already two parsers available :)...
by dodicat
Oct 03, 2006 12:06
Forum: Libraries Questions
Topic: mathplus.bas -2000+ lines
Replies: 7
Views: 3832

mathplus.bas include file with eval function parser

a.bas(1731) : error 34: Expected 'END IF' clx = Val(s1$) ^ a.bas() : error 48: Undefined label, MAKEY and why there are so many labels? I think it would ne more clear if you recode it with functions Thank you oyster. All the code didn't get through. My first attempt to send it was blocked because I...
by dodicat
Oct 02, 2006 21:32
Forum: Libraries Questions
Topic: mathplus.bas -2000+ lines
Replies: 7
Views: 3832

mathplus.bas -2000+ lines

This file is too big to upload as code to Freebasic. It is a maths include file with the six trig and hyperbolic functions and inverses plus a few other standard math functions. Also a parser (EVAL function) similar to BBC basic or the val function on the old Sinclair Spectrums you may remember them...
by dodicat
Sep 19, 2006 20:18
Forum: Archive
Topic: Equator engine prealpha Sort of advanced calculator
Replies: 14
Views: 4361

Re: adapting equator to a general eval("expression&quo

http://forum.qbasicnews.com/users/file.php?id=270 This is a school project I've been working on for a while, a sort of math program. Basically it's an eval function bundled together with a variable system. It can handle basic operators (e ^ * / + -), functions sqr(9) (and more) and variables storin...
by dodicat
Sep 03, 2006 12:34
Forum: Linux
Topic: Linux Fedora core5 segmentation fault on executables.
Replies: 3
Views: 2526

segment error with fedora core 5-SOLVED

Does the FB compiler (fbc) run fine? Do your apps use any external libraries? Or the internal gfx functions, etc. It could be some incompatibility with Fedora's shared libraries. To see where it's crashing, compile the application with debugging symbols (using the -g option), load it in GDB (gdb my...
by dodicat
Aug 05, 2006 20:11
Forum: Linux
Topic: Linux Fedora core5 segmentation fault on executables.
Replies: 3
Views: 2526

Does the FB compiler (fbc) run fine? Do your apps use any external libraries? Or the internal gfx functions, etc. It could be some incompatibility with Fedora's shared libraries. To see where it's crashing, compile the application with debugging symbols (using the -g option), load it in GDB (gdb my...
by dodicat
Aug 02, 2006 21:45
Forum: Linux
Topic: Linux Fedora core5 segmentation fault on executables.
Replies: 3
Views: 2526

Linux Fedora core5 segmentation fault on executables.

Segmentation fault on Fedora core 5 with fbc.16b Previously I compiled and exececuted a program I wrote with fbc.15b on Red Hat 9. No problem there. The same program on Fedora core 5 compiled with fbc.16b doesn't execute,I get the error 'Segmentation fault' from a terminal, and a dead duck if I doub...
by dodicat
Jul 23, 2006 20:35
Forum: General
Topic: linux 0.16b input$(n)
Replies: 1
Views: 1062

linux 0.16b input$(n)

I see that the input$(n) has been repaired in the windows 0.16b , but my program wont execute when I use input$(n) in my linux 0.16b . (A sudoku solver, where it is really handy to input 81 digits without having to press Enter each time)

Did this bug get fixed on the Linux 0.16b compiler?
by dodicat
Jan 17, 2006 20:24
Forum: Windows
Topic: input$(number)
Replies: 8
Views: 3738

Odd...INPUT$(1) is working fine for me here - no crashing. I'm using fbv15b under Win98se. (just been making DOS compiled progs tho). I just did a search, and I don't have mscvrt.dll in my system. Maybe that's why? Dav fb ver .15 win32 crashes with all input$(n) I downloaded the dos version and inp...
by dodicat
Jan 17, 2006 20:08
Forum: Windows
Topic: input$(number)
Replies: 8
Views: 3738

input$(n) fb.15 win32

It could be that some people who are crashing downloaded a certain update or a certain patch. I'm just guessing, or compiling in DOS could stop this problem. Question: does compiling in DOS give the same results? The input$(n) is ok with dos .15. However screen 9 with colours doesn't work properly....