Browse Search Popular Register Upload Rules User list Login:
Search:
Simple Average of a list of numbers

Image:
screenshot of the scene

Author: Pedro6159

Group: Default

Filesize: 36.73 kB

Date added: 2020-12-26

Rating: 5

Downloads: 818

Views: 228

Comments: 0

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

¯\_(ツ)_/¯


Variable :
scene.my.numbers = [6, 8, 10, 9];

Code :
Scene.my.result = [];
text = math.toString(Reflection.ExecuteCode(string.list2str(for((st-
ring.length(scene.my.Value)), (n)=>{
string.length(string.split(math.toString(scene.my.Value(n)), ".")) > 1 ? {
scene.my.result = scene.my.result ++ ["+(" + math.toFloat(scene.my.Value(n)) + ")"]
} : {
scene.my.result = scene.my.result ++ ["+(" + math.toFloat(scene.my.Value(n)) + ".0)"]
}
}))) / string.length(Scene.my.Value))
Last edited at 2020/12/26 21:30:02 by Pedro6159
Please log in to rate this scene
edit
Similar scenes
Title: Moving Average, Average and List Interpolation Scripts!
Rating: 5.25
Filesize: 27.7 kB
Downloads: 258
Comments: 3
Ratings: 2
Date added: 2024/04/08 15:59:11
Made with: Algodoo v2.1.0
Rating: rated 5.3
download
Title: The Dunerunner
Rating: 5.625
Filesize: 486.18 kB
Downloads: 3412
Comments: 0
Ratings: 2
Date added: 2023/07/16 11:23:32
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: types of numbers in aliquot sequences described visually (see desc.)
Rating: 5
Filesize: 29.12 kB
Downloads: 208
Comments: 0
Ratings: 1
Date added: 2025/12/31 13:26:51
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Bagatelle (Old-Style Pinball)
Rating: 5.625
Filesize: 50.13 kB
Downloads: 2027
Comments: 0
Ratings: 2
Date added: 2014/08/19 13:39:57
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: BFB character favorites list
Rating: 5
Filesize: 2.51 MB
Downloads: 622
Comments: 1
Ratings: 1
Date added: 2018/05/30 02:34:26
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: DESS Numbers
Rating: 5
Filesize: 160.75 kB
Downloads: 2505
Comments: 0
Ratings: 1
Date added: 2025/01/16 03:22:33
Made with: Algodoo v2.2.3
Rating: rated 5
download