Search found 599 matches

by bluatigro
Nov 20, 2018 11:56
Forum: General
Topic: exact calc whit fractor's [ breuken ]
Replies: 2
Views: 347

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

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

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

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

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

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

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

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

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

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

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

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

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 =...
by bluatigro
Oct 04, 2018 8:31
Forum: General
Topic: raytrace try
Replies: 24
Views: 2113

Re: raytrace try

update : build it in not fast enoug jet error : only black pixel's i m using a point traveling trough the world i know that it can be done whit a ray then it wood take sec in place of min to draw a BMP buiding this whit a ray : who helps ? '' bluatigro 3 okt 2018 '' slow ray 1 '' this can be speeded...
by bluatigro
Oct 03, 2018 12:27
Forum: General
Topic: raytrace try
Replies: 24
Views: 2113

Re: raytrace try

update : i fount some math formula's i can not translate them in basic it is +-30year ago i studied math i do not understand it al i need some help see for math : https://www.cl.cam.ac.uk/teaching/1999/AGraphHCI/SMAG/node2.html#SECTION00023100000000000000 the folowing works but is extreemly slow '' ...

Go to advanced search