Search found 661 matches

by bluatigro
Dec 06, 2018 11:37
Forum: General
Topic: parse lisp formula function
Replies: 1
Views: 415

Re: parse lisp formula function

update : i forgot the variable's ''inputvar( 1 ) = X this is a proof of concept can be enlarged whit what ever you come up whit dim shared as double inputvar( 9 ) function parse( formula as string ) as string if formula = "" then return "error" on error goto iligal_calc while ins...
by bluatigro
Dec 06, 2018 11:23
Forum: General
Topic: parse lisp formula function
Replies: 1
Views: 415

parse lisp formula function

this can be handy if you need a parse function i do not know [ jet ] how to build a basic parse function '' bluatigro 6 dec 2018 '' parse lisp function dim shared as string word( 1000 ) dim shared as integer wordtel sub split( a as string ) wordtel = 0 while instr( a , " " ) <> 0 word( wor...
by bluatigro
Nov 20, 2018 11:56
Forum: General
Topic: exact calc whit fractor's [ breuken ]
Replies: 2
Views: 687

Re: exact calc whit fractor's [ breuken ]

if a fraction = i / j then yes
the way whit mod i do not know
if it is faster give gcd() whit mod

there are more costructs in math
that in code you use a double
[ example : square root ]
can somthing like this done whit dose ?

and what about combination's ?
by bluatigro
Nov 16, 2018 10:24
Forum: General
Topic: raytrace try
Replies: 24
Views: 3698

Re: raytrace try

update : wave added to turbulence material's now we got : earth , moon , mars , Jupiter and neptune '' bluatigro 16 nov 2018 '' bluaray 1 material #include "noise.bas" dim shared as integer winx , winy screen 18 , 32 screeninfo winx , winy type d3d dim as double x , y , z declare construct...
by bluatigro
Nov 14, 2018 12:42
Forum: General
Topic: raytrace try
Replies: 24
Views: 3698

Re: raytrace try

update : sphere's whit texture's you shoot see a 'earth' and a 'moon' how about : cone's , cylinder's , tori i know triangles but i did not het good results whit texture's on that '' bluatigro 14 nov 2018 '' bluaray 1 #include "noise.bas" dim shared as integer winx , winy screen 18 , 32 sc...
by bluatigro
Nov 07, 2018 12:15
Forum: General
Topic: hawk's and dove's sim
Replies: 1
Views: 433

Re: hawk's and dove's sim

this is a other sim '' bluatigro 7 nov 2018 '' grass cow lion sim const as integer world = 10000 dim as integer q( world ) , e( world ) dim as integer i , tel , cowtel , liontel , grasstel , dice const as integer empty = 0 const as integer cow = 1 const as integer lion = 2 const as integer grass = 3...
by bluatigro
Nov 07, 2018 12:06
Forum: General
Topic: hawk's and dove's sim
Replies: 1
Views: 433

hawk's and dove's sim

there are birds they are hawk or dove 2 bird's meet and try to eat if 2 hawk's : - they fight and get no food if 2 dove's : - they share the food if 1 hawk : - hawk eats al food this is a sim that show's and proofs that the dove's get it good conclusion : cooperation is better then competision '' bl...
by bluatigro
Nov 02, 2018 12:10
Forum: General
Topic: exact calc whit fractor's [ breuken ]
Replies: 2
Views: 687

exact calc whit fractor's [ breuken ]

this is a way to calculate exact whit fractor's [ breuken ] whit doubles you wil get rounding error's '' bluatigro 2 nov 2018 '' fractor lib function gcd( a as long , b as long ) as long while a <> b if a < b then b = b - a end if if a > b then a = a - b end if wend return a end function type fracto...
by bluatigro
Oct 25, 2018 9:07
Forum: General
Topic: A bigger font
Replies: 23
Views: 2408

Re: A bigger font

this may be useful : warning : the char's are 8 high in fulscreen in screen 20 16 pixel's '' bluatigro 12 sept 2018 '' automatic big text dim shared as integer letterpart( 255 , 8 ) dim as integer char , ix , iy #include "fbgfx.bi" #if __FB_LANG__ = "fb" Using FB '' Scan code con...
by bluatigro
Oct 10, 2018 11:44
Forum: General
Topic: bigint and bigdouble
Replies: 4
Views: 1086

Re: bigint and bigdouble

update : try at -() , .multiply_by_10() and .divide_by_10() these have to work before i try /() '' bluatigro 10 okt 2018 '' big int + big float const as integer size = 30 #ifndef true const as integer false = 0 const as integer true = not false #endif type bigint dim as byte digit( size ) , ispositi...
by bluatigro
Oct 10, 2018 9:18
Forum: General
Topic: bigint and bigdouble
Replies: 4
Views: 1086

Re: bigint and bigdouble

update : i tryed it whit byte's in place of string's so it wil be faster i used byte's in place of integer's so it wil have les memory i got +() good but not *() in *() there is a typo or a error i have a smal idea how to do /() and -() any help is wekome if i have bigint i wil try bigfloat '' bluat...
by bluatigro
Oct 09, 2018 6:31
Forum: General
Topic: Getting past the 15 decimal place limit of a double in FreeBASIC?
Replies: 11
Views: 1460

Re: Getting past the 15 decimal place limit of a double in FreeBASIC?

i was trying to to do this
but then whit a choise about how many digit's
viewtopic.php?f=3&t=26917
i tryed first the integer math to work
it is not jet good
by bluatigro
Oct 05, 2018 7:58
Forum: General
Topic: minwin10.dll missing ?
Replies: 1
Views: 345

minwin10.dll missing ?

i tryed to start FB
it missed minwin10.dll
where can i find that ?
by bluatigro
Oct 04, 2018 11:45
Forum: General
Topic: raytrace try
Replies: 24
Views: 3698

Re: raytrace try

i have to use operator's or function's
i m a litle layzy : i do not like to type
i m not used to macro's
by bluatigro
Oct 04, 2018 11:42
Forum: General
Topic: backtrack tutorial translation try
Replies: 2
Views: 510

backtrack tutorial translation try

i try to translate and learn this : https://www.geeksforgeeks.org/backtracking-algorithms/ it is not jet whitout error's '' bluatigro 4 okt 2018 '' backtrack tutorial translation from c++ : '' https://www.geeksforgeeks.org/backtracking-algorithms/ '' backtracing : 1 knights toor const as integer n =...