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

Image:
screenshot of the scene

Author: MattBoi123

Group: Default

Filesize: 28.84 kB

Date added: 2024-08-22

Rating: 5

Downloads: 321

Views: 131

Comments: 3

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

This is the famous double slit experiment. I changed the color scheme and added some info.
It takes a while to get good data, any optimization tips for things like setting the velocity to only be forward are welcome and encouraged!
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 2024/08/23 21:06:28 by MattBoi123
Please log in to rate this scene
edit
Similar scenes
Title: free-to-use suspension (Double FIXED)
Rating: 5
Filesize: 25.24 kB
Downloads: 349
Comments: 2
Ratings: 1
Date added: 2020/12/10 17:33:30
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: photon disturbence
Rating: 5
Filesize: 39.45 kB
Downloads: 275
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: 227
Comments: 0
Ratings: 1
Date added: 2016/11/16 11:54:45
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: double barrel fixed
Rating: 5
Filesize: 85.04 kB
Downloads: 7379
Comments: 0
Ratings: 1
Date added: 2021/11/16 15:22:50
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: PID Toy
Rating: 5
Filesize: 5.81 kB
Downloads: 197
Comments: 3
Ratings: 1
Date added: 2016/12/13 16:22:57
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: ARMRS17
Rating: 5
Filesize: 464.24 kB
Downloads: 373
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