1 страниц (5 вхождений)
Advanced range function - A function that improves the normal range(). - Сообщения
A function that improves the normal range().
This is almost a normal range(), but it can plot a span from non-integers with a configurable step. Moreover, any numbers can be substituted inside the interval.
There are examples inside.


Get Range 3.sm (718 КиБ) скачан 186 раз(а).
You can put the file in the snippet folder to quickly add it to any project.
I don't know much English, so I write through a translator. Russian forum is closed so I write here.
This is almost a normal range(), but it can plot a span from non-integers with a configurable step. Moreover, any numbers can be substituted inside the interval.
There are examples inside.


Get Range 3.sm (718 КиБ) скачан 186 раз(а).
You can put the file in the snippet folder to quickly add it to any project.
I don't know much English, so I write through a translator. Russian forum is closed so I write here.
2 пользователям понравился этот пост
As I understand, the main objective is to have ranges with custom extra values.
Yet, given the size of the procedure, it must be much smarter than this:

re.sm (3 КиБ) скачан 154 раз(а).
Yet, given the size of the procedure, it must be much smarter than this:

re.sm (3 КиБ) скачан 154 раз(а).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
SteelCat 16.05.2020 17:11:00
WroteAs I understand, the main objective is to have ranges with custom extra values.
Yet, given the size of the procedure, it must be much smarter than this:
re.sm (3 КиБ) скачан 154 раз(а).
Wow, this is cool and so easy. I didn't realize it before.
And I understood why this option did not suit me. I needed to build a range that could start with a non-integer and end with a non-integer, but the main step should be an integer. That is, so that you can start with 0.99, and then the step becomes an integer. At the same time, it was necessary to change the step.
And inside non-integers as a bonus, just because the sorting function can do it.
There is probably a simpler solution, but I haven't found it.

I just needed a similar feature at the University and decided to share it here. Maybe it will be useful to someone.
WroteI needed to build a range that could start with a non-integer and end with a non-integer, but the main step should be an integer. That is, so that you can start with 0.99, and then the step becomes an integer. At the same time, it was necessary to change the step.
And inside non-integers as a bonus, just because the sorting function can do it.
There is probably a simpler solution, but I haven't found it.
I just needed a similar feature at the University and decided to share it here. Maybe it will be useful to someone.
This might be a first approach...

re1.sm (3 КиБ) скачан 166 раз(а).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
frapuano 16.05.2020 17:03:00
1 страниц (5 вхождений)
-
Новые сообщения
-
Нет новых сообщений