Quote:
Originally Posted by chendoh
Does this mean a change to the basic code in post #1?
|
Yes – a single node of the code is changed by the addition of a couple of “+.5”s:
Code:
K W s B="" F s B=$o(M(B)) q:B="" S X=WT-T(B)*VX(B)+X(B),Y=WT-T(B)*VY(B)+Y(B),$E(W(Y/.5+.5\1),X/.25+.5\1)=$E("123456789abcdef",B) ;XELCOL4(-1,2)
It doesn’t effect the simulation, just the way the ASCII movie displays. As it seems an improvement, I’ll update post #1 to have it
Quote:
Originally Posted by chendoh
Time for the price is right!
ball mass=1.85
x=8.5
v=(-1.25,3)
|
Left the 7 (not “cheating” by trying it on your own simulation, eh?):
Code:
c d
f
1
2 3
4 5 6
7 8 9 a
e
Sim T:0 Event:15,6
c d
1
2 3
f
4 5 6
7 8 9 a
e
Sim T:1.439346434158197037 Event:15,3
c d
1
2 3
f
4 5 6
7 8 9 a
e
Sim T:1.446927381385526788 Event:6,10
c d
1
2 3
4 5 f
7 8 9 6 a
e
Sim T:1.873670927568300826 Event:15,9
c d
1
3
2
4 5
f
7 8 9 a
6
e
Sim T:1.931102903302500473 Event:6,14
c d
1
3
2
4 5
f
7 8 a
9
e
Sim T:2.192992308089939156 Event:3,1
c d
1
3
2
4 5
f
7 8 a
e 9
Sim T:2.316646171198307894 Event:14,9
c d
1
3
2
4 5
f
7 8 a
e
Sim T:2.317598591940404971 Event:15,5
c d
1
3
2
4 5
f
7 8 a
e
Sim T:2.331454503763453984 Event:15,8
c d
1
3
2
5
4
7 8 a
f
e
Sim T:3.455983135268887157 Event:5,2
c d
1
3
2
5
4
7 8 a
f
e
Sim T:3.511277027314842549 Event:13,10
c d
1
3 2
5
4
7 8
e f
Sim T:4.059567104235840094 Event:15,14
c d
1
3 2
5
4
7 8
e
Sim T:4.222798422350841003 Event:3,12
c d
1
2
4 5
8
7
e
Sim T:5.644345162804059775 Event:8,4
c d
1
2
4 5
8
7
e
Sim T:5.686711090285708485 Event:4,5
c d
1
2
4 5
8
7
e
Sim T:6.375443312517725748 Event:8,12
c d
1
2
4
5
7
e
Sim T:9.43466455528544241 Event:11,1
c d
2
4
5
7
e
Sim T:9.92946462403055255 Event:11,2
c d
4
5
7
e
Sim T:11.38909790163314863 Event:12,4
c d
7 5
e
Sim T:13.61892049941984903 Event:5,14
c d
7
e
Sim T:22.90846413087447138 Event:
----------------
Moderator: Computers and Technology; Medical Science; Science Projects and Homework; Philosophy of Science; Physics and Mathematics; Environmental Studies
