1 Pages (3 items)
ranges - Messages
#1 Posted: 5/3/2023 9:02:41 PM
#2 Posted: 5/3/2023 9:34:54 PM
WroteI am studying with Introduction to the use of SMath Studio Prepared by Gilberto E. Urroz, May 2010.
I don't understand something in ranges and would like some explanation.
By far obsolete for productive maths.
Think in term of ranging pi 0..0.1,pi ,,,
No matter how small ► can't never exactly end pi.
Utilities Discrete Algo Range Preferred Copy.sm (127 KiB) downloaded 23 time(s).
#3 Posted: 5/3/2023 10:34:30 PM
WroteExample1 is a definition error, and I'm curious how increment is defined in examples 2-4.
range() function has two sub functions.
One is with two, other with three parameters.
range() with two parameters has step 1 or -1.
It depends on whether a less or greater than b.
range() with three parameters is relation of start, stop and added.
added is equal to start+step. step can be negative or positive.
When added is greater than start, range will increase.
If added is less than start, range will decrease.
I hope picture below helps to clarify.
Regards.
1 Pages (3 items)
-
New Posts
-
No New Posts