Search found 675 matches

by Henko
Fri May 24, 2013 4:32 pm
Forum: BASIC programs
Topic: Sorting functions: BubbleSort and QuickSort
Replies: 3
Views: 5797
Flag: Netherlands

Re: Sorting functions: BubbleSort and QuickSort

Bubble sort is about the slowest sorting algoritm, whereas quicksort is one of the fastest. I use shellsort, which is in between, but close to quicksort. The advantage of quicksort lies with sorting very large arrays. The advantage of shellsort is its compact code (see my earlier post "numerics and ...
by Henko
Fri May 24, 2013 4:24 pm
Forum: BASIC programs
Topic: Solving lineair equations
Replies: 9
Views: 17551
Flag: Netherlands

Re: Solving lineair equations

Hello Henk (Oldie?) I am getting some beginners-experience with smart basic by running and experimenting with some programs. This program does not run under version 2.1 It gives an error on v(i)=field_text$(b$(i)) telling : variable is used incorrectly. It is in the function Vec_in I can not find t...
by Henko
Wed May 22, 2013 2:11 pm
Forum: Other topics
Topic: 2.2 version
Replies: 11
Views: 13257
Flag: Netherlands

Re: 2.2 version

borisbelfer wrote:а инструкция на предыдущую версию где?
В режиме редактирования, нажать маленькую книгу в правом верхнем углу. Руководство появится
LOL, Henk
by Henko
Mon May 20, 2013 6:38 pm
Forum: BASIC programs
Topic: Inner planets orrery
Replies: 6
Views: 9655
Flag: Netherlands

Re: Inner planets orrery

[quote="Dalede" There are many different platforms that run iOS and I had intended to make the rotation time approximately the same but there is no timer function so it may behave much faster or slower than it does on my iPad 2.[/quote] There is a timer function, see the manual, and it is working pr...
by Henko
Sun May 19, 2013 1:42 pm
Forum: BASIC programs
Topic: Preview flight simulator
Replies: 5
Views: 6614
Flag: Netherlands

Preview flight simulator

' To be added in final version: ' - scenery ' - check on correct landings ' - wind ' ' option angle degrees option base 1 dim xy(2),airports(7,3),mes$(60) read wl,bmax,b,bs,f,to,k,cdo read clo,clm,dclf,dcdf,dcdg,fr read dt,g,x,y,koers,breaks,gears,speed,relax,x,y for i=1 to 7 ! for j=1 to 3 ! read a...
by Henko
Sat May 18, 2013 9:51 pm
Forum: Other topics
Topic: 2.2 version
Replies: 11
Views: 13257
Flag: Netherlands

Re: 2.2 version

Mr. Kibernetik wrote:Recursion with function calls will be available.
Terrific!
by Henko
Tue May 14, 2013 3:52 pm
Forum: BASIC programs
Topic: Matlib (for lineair algebra guy's)
Replies: 1
Views: 3495
Flag: Netherlands

Matlib (for lineair algebra guy's)

option base 1 dim t(3,3),t1(4,3),t2(3,3),s(3),s1(3) maxx=screen_width() maxy=screen_height() randomize graphics fill color 0.8,0.8,0.8 cls() rem fill rect 0,0 to maxx,maxy draw color 0,0,0 for i=1 to 3   for j=1 to 3     read t(i,j)   next j next i vec_rnd(3,s,.1,.7) rem vec_in (3,s,600,20) mat_in (...
by Henko
Tue May 14, 2013 3:48 pm
Forum: BASIC programs
Topic: Fast fill_poly function
Replies: 2
Views: 4072
Flag: Netherlands

Re: Fast fill_poly function

Amazing this self coded graphics primitives... Imagine a matrix manipulation library which could also be imported in smart basic ( include# matrix_by_Henko.txt ) :D Well, no need for imagination. I'll upload my "matlib" library, which deals with vectors and matrices. There are no explaining comment...
by Henko
Tue May 14, 2013 10:45 am
Forum: BASIC programs
Topic: Paint program project. Anybody extends this start snippet?
Replies: 0
Views: 5063
Flag: Netherlands

Paint program project. Anybody extends this start snippet?

graphics graphics clear .8,.8,.8 draw size 3 ! draw color 0,0,0 button "cls" title "clear" at 310,900 size 70,50 button "pen1" title "thin" at 10,920 size 90,30 button "pen2" title "medium" at 110,920 size 90,30 button "pen3" title "thick" at 210,920 size 90,30 button "black" title "black" at 390,92...
by Henko
Mon May 13, 2013 7:12 pm
Forum: BASIC programs
Topic: Numerics and string sorting
Replies: 0
Views: 4899
Flag: Netherlands

Numerics and string sorting

option base 1 dim a(50),tex$(10) dim cities$(28) for i=1 to 26   read cities$(i)   next i data "ulm","vancouver","warschau","xnotfound","yosemite" data "kano","london","moskow","nairobi","osaka" data "fremont","groningen","helsinki","inverness","jakarta" data "proletarskiy","quatar","riad","sydney",...