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

Views: 164

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: Jcharlesk's Marble Race Pack Version 2 (Read description)
Rating: 5
Filesize: 132.29 kB
Downloads: 5915
Comments: 35
Ratings: 1
Date added: 2014/07/14 22:10:43
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: photon disturbence
Rating: 5
Filesize: 39.45 kB
Downloads: 291
Comments: 0
Ratings: 1
Date added: 2017/07/09 18:37:33
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Double orbit - fixed suns
Rating: 5
Filesize: 15.13 kB
Downloads: 246
Comments: 0
Ratings: 1
Date added: 2016/11/16 11:54:45
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: PID Toy
Rating: 5
Filesize: 5.81 kB
Downloads: 211
Comments: 3
Ratings: 1
Date added: 2016/12/13 16:22:57
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Algotriacontathlon - Day 15: "Not This Again!"
Rating: 5
Filesize: 151.61 kB
Downloads: 1191
Comments: 2
Ratings: 1
Date added: 2025/03/03 22:21:32
Made with: Algodoo v2.2.3
Rating: rated 5
download
Title: Lazer Experiment
Rating: 5
Filesize: 132.85 kB
Downloads: 513
Comments: 0
Ratings: 1
Date added: 2014/04/26 03:15:01
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