Search found 688 matches

by Henko
Thu Oct 22, 2026 6:59 am
Forum: BASIC programs
Topic: Spoken Rubbish
Replies: 3
Views: 2148
Flag: Netherlands

Re: Spoken Rubbish

This is strange. I dowloaded my version from the forum and the program worked. Then a downloaded your version from the forum and it worked; after commenting out your “do until” addition, it still worked. I use iPadOS 17.7.5 (21H420) and SmartBasic 6.9. (I used the “debug pause” to inspect the conten...
by Henko
Mon Oct 19, 2026 5:45 pm
Forum: BASIC programs
Topic: Spoken Rubbish
Replies: 3
Views: 2148
Flag: Netherlands

Spoken Rubbish

flag=0 if flag then ! list voices ! stop ! end if randomize k$="aeiouy" ! m$="bcdfghjklmnprstvwxz" nk=len(k$) ! nm=len(m$) t$="" for nw=1 to 20 lw=1+rnd(4) w$=mid$(m$,rnd(nm),1) for i=2 to lw w$&=mid$(k$,rnd(nk),1) if i<lw then w$&=mid$(m$,rnd(nm),1) next i t$&=w$&" " next nw debug pause say pitch 1...
by Henko
Thu Oct 08, 2026 10:47 am
Forum: BASIC programs
Topic: Two springs & weights "piggy backed"
Replies: 11
Views: 19293
Flag: Netherlands

Re: Two springs & weights "piggy backed"

Hi, Yes, the “air friction” is just there to get a stable proces (wich remains within limits). It turns out, that there is a precise value of the “Cd” coefficient for each combination of body masses and spring constants. I deliberately used V in stead of V^2, because the friction must always be coun...
by Henko
Mon Oct 05, 2026 4:47 pm
Forum: BASIC programs
Topic: Two springs & weights "piggy backed"
Replies: 11
Views: 19293
Flag: Netherlands

Re: Two springs & weights "piggy backed"

Hi,
You don’t need the “copy all” feature. You may select the whole code in the code window “by hand”, and use copy/paste.
by Henko
Mon Oct 05, 2026 8:12 am
Forum: BASIC programs
Topic: Two springs & weights "piggy backed"
Replies: 11
Views: 19293
Flag: Netherlands

Re: Two springs & weights "piggy backed"

To study the (in)stability of the discrete simulation, i made a “as simple as possible” model. Indeed, the method proves to be unstable for this physical casus. The instability decreases as the duration of the time slice (dt) gets smaller, and becomes stable in the end as dt approaches zero. To comp...
by Henko
Sun Oct 04, 2026 9:05 pm
Forum: BASIC programs
Topic: Mass on Spring Resonance
Replies: 14
Views: 52915
Flag: Netherlands

Re: Mass on Spring Resonance

by Henko
Sat Oct 03, 2026 9:07 pm
Forum: BASIC programs
Topic: Two springs & weights "piggy backed"
Replies: 11
Views: 19293
Flag: Netherlands

Re: Two springs & weights "piggy backed"

Hi Davey, You did quite a job on the “two body/two spring” object. I had a look at your method, the math, and the code, and have some remarks/sugestions. If the kinematics are done correctly, the system should remain within its limits, also without the correction due to air drag. Most important is a...
by Henko
Sat Oct 03, 2026 5:08 pm
Forum: BASIC programs
Topic: Mass on Spring Resonance
Replies: 14
Views: 52915
Flag: Netherlands

Re: Mass on Spring Resonance

Henko wrote: ↑
Sat Oct 03, 2026 6:17 am
Where?
I can’t find it.
Ah, a separate post😊.
by Henko
Sat Oct 03, 2026 6:17 am
Forum: BASIC programs
Topic: Mass on Spring Resonance
Replies: 14
Views: 52915
Flag: Netherlands

Re: Mass on Spring Resonance

Where?
I can’t find it.
by Henko
Mon Sep 21, 2026 9:38 pm
Forum: BASIC programs
Topic: “Draw an arrow” utility
Replies: 0
Views: 10108
Flag: Netherlands

“Draw an arrow” utility

IMG_1456.jpeg graphics ! graphics clear .8,.8,.8 ! draw color 0,0,0 get screen size sw,sh ! xc=sw/2 ! yc=sh/2 option angle degrees draw size 2 ! R=300 ! da=15 for alfa=0 to 360-da step da R=50+.6*alfa xo=xc+8*cos(alfa) ! yo=yc-8*sin(alfa) xe=xc+R*cos(alfa) ! ye=yc-R*sin(alfa) draw_arrow(xo,yo,xe,ye...