Browse Search Popular Register Upload Rules User list Login:
Search:
[FIXED] Double Slit Experiment

Image:
screenshot of the scene

Author: MattBoi123

Group: Default

Filesize: 27.35 kB

Date added: 2024-08-22

Rating: 5

Downloads: 372

Views: 195

Comments: 3

Ratings: 1

Times favored: 0

Made with: Algodoo v2.2.4

Tags:

Scene tag

This is the famous double slit experiment. I added some info incase it wasnt clear. :3
It takes a while to get good data, any optimizations or corrections are MASSIVELY appreciated!:D
Thank you to Little (http://www.algodoo.com/algobox/profile.php?id=30019) and 42flowermaster (http://www.algodoo.com/algobox/profile.php?id=41066) for the debugging help.
Enjoy!
Last edited at 2026/01/06 00:47:00 by MattBoi123
Please log in to rate this scene
edit
Similar scenes
Title: Different kinds of gravity
Rating: 5
Filesize: 19.74 kB
Downloads: 782
Comments: 2
Ratings: 1
Date added: 2023/03/31 13:29:57
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: a living Bug. double Fixed
Rating: 5
Filesize: 68.84 kB
Downloads: 395
Comments: 1
Ratings: 1
Date added: 2020/02/29 19:36:22
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: photon disturbence
Rating: 5
Filesize: 39.45 kB
Downloads: 304
Comments: 0
Ratings: 1
Date added: 2017/07/09 18:37:33
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: double barrel fixed
Rating: 5
Filesize: 85.04 kB
Downloads: 7599
Comments: 0
Ratings: 1
Date added: 2021/11/16 15:22:50
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Rutherfords Experiment
Rating: 5
Filesize: 25.11 kB
Downloads: 743
Comments: 3
Ratings: 1
Date added: 2009/09/23 14:18:03
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: ARMRS17
Rating: 5
Filesize: 464.24 kB
Downloads: 412
Comments: 0
Ratings: 1
Date added: 2019/05/28 22:11:27
Made with: Algodoo v2.1.0
Rating: rated 5
download
I fixed it!

First, toInt should be math.toInt.

Second, randuniform01() should just be rand.uniform01.

Finally, rand.direction2D() should just be rand.uniform2D! (no parenthesis)

I hope this helps!
Edit: Little's comment above already fixed this problem

Original comment:

Here is the code for the photon, fixed:

(e)=>{
#####pos = [math.toInt(rand.uniform01 * 8), 0];
#####vel = rand.direction2D
}

Some changes:
1) Changed "toInt" to "math.toInt", as "toInt" is part of the "math" object
2) "rand.uniform01" is not a function, simply calling it without parentheses will work
3) the "e.this." prefix is not necessary

Have fun! :) :y :yum:
Last edited at 2024/08/22 23:38:21 by 42flowermaster
thank you both so much! i tried using the google doc for thyme documentation, but clearly i missed something lol