Search found 1854 matches

by srvaldez
May 26, 2019 16:12
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) :-)
Replies: 55
Views: 3728

Re: Gas64 (no more use of gcc, only gas) :-)

hello SARG :-) the following code fails to compile, however if you comment-out either sub cadd or sub csub then it compiles and runs OK type double_complex re as double im as double end type sub cadd naked cdecl(byref result as double_complex, byref x as double_complex, byref y as double_complex) as...
by srvaldez
May 23, 2019 20:57
Forum: General
Topic: Memory access ?
Replies: 4
Views: 114

Re: Memory access ?

try using redim instead of dim
by srvaldez
May 23, 2019 20:50
Forum: General
Topic: Len() can't be 'overloaded'
Replies: 14
Views: 341

Re: Len() can't be 'overloaded'

@MrSwiss, what's the expected output?
I have a 3 year old version of FB and it compiles your code with no problem

Code: Select all

s ULI
46            test, test, blah, blah, blaaaaaaaaahhhhhhhhhh!

s ULI
35            not so funny: can't overload Len()!
by srvaldez
May 22, 2019 22:39
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 50
Views: 1201

Re: Creating (scientific) plots via gnuplot

@badidea yes, plotting arrays looks interesting dim as string plot_command const max=20 plot_command=chr(34)+"array A["+str(max)+"]=[" for i as long=1 to max plot_command+=str(i) if i<max then plot_command+=", " end if next plot_command+="];" plot_command+=&qu...
by srvaldez
May 22, 2019 13:16
Forum: Community Discussion
Topic: Wiindows 10
Replies: 24
Views: 981

Re: Wiindows 10

you are right, it's just a guess how long it took, being a VM I was doing other things in the host OS
by srvaldez
May 22, 2019 12:41
Forum: Windows
Topic: Has anyone experience with LIBRSVG and CAIRO....
Replies: 1
Views: 62

Re: Has anyone experience with LIBRSVG and CAIRO....

the dependencies of Librsvg are high, you would probably windup with 20+ dll's and the header translation may not be so simple, have not tried with fbfrog yet.
headers and examples for Cairo should be in the FB distribution
by srvaldez
May 22, 2019 11:31
Forum: Community Discussion
Topic: Wiindows 10
Replies: 24
Views: 981

Re: Wiindows 10

yes, it's 1903, that was about 3 or 4 weeks ago.
by srvaldez
May 22, 2019 10:51
Forum: Community Discussion
Topic: Wiindows 10
Replies: 24
Views: 981

Re: Wiindows 10

unfortunately I did not time it, all I have is HDD and it did not take that long, less than one hour.
by srvaldez
May 22, 2019 10:16
Forum: Community Discussion
Topic: Wiindows 10
Replies: 24
Views: 981

Re: Wiindows 10

@fxm, I have it installed in one of my VM's, but I spend very little time on Windows nowadays
by srvaldez
May 21, 2019 16:48
Forum: General
Topic: How do you interoperate with other applications using double-precision floating-point?
Replies: 15
Views: 216

Re: How do you interoperate with other applications using double-precision floating-point?

hello cbruce I have exactly the same function coded in FreeBASIC that is in a paper I'm working from where the function was coded in MatLab. Here are the results of the two: FreeBASIC result: z[n+1] = 0.007268783820012809 + 0.05340708046876657 * i MatLab result: z[n+1] = 0.0072687838200128062515 + 0...
by srvaldez
May 21, 2019 16:02
Forum: General
Topic: How do you interoperate with other applications using double-precision floating-point?
Replies: 15
Views: 216

Re: How do you interoperate with other applications using double-precision floating-point?

hello cbruce
I suspect that it could be a precision difference in the complex math calculations between that of FB and Matlab, that is, one or the other does the complex math more accurately, unfortunately I can't verify this.
by srvaldez
May 21, 2019 2:15
Forum: General
Topic: How do you interoperate with other applications using double-precision floating-point?
Replies: 15
Views: 216

Re: How do you interoperate with other applications using double-precision floating-point?

MathWorks wrote:MATLAB constructs the double-precision (or double) data type according to IEEE® Standard 754 for double precision.

so does FB, please show some math calculations (not jus the results) in MATLAB and the same in FB
by srvaldez
May 21, 2019 1:35
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 50
Views: 1201

Re: Creating (scientific) plots via gnuplot

in dislin.bi inclib probably was including the wrong or missing lib
btw, this thread has gone way off topic, one reason I have not participated, even this post is off topic.
by srvaldez
May 20, 2019 15:44
Forum: Community Discussion
Topic: fawlty/idl programming language
Replies: 9
Views: 323

Re: fawlty/idl programming language

Tourist Trap wrote:Giac is a C++ library, it is the CAS computing kernel
I'm not good with external libraries linking and using from inside FB. And here it's some C++ stuff, it may be difficult to interface.

right, only a heavy-weight expert could tackle that one.

Go to advanced search