The previous article introduces the Linspace function creation arithmetic progression &NB Sp &NB Sp &NB Sp &NB Sp &NB Sp This explains how to use logspace to create geometric progression:
The creation of geometric progression and arithmetic progression is similar, with only one place to note:
The starting and terminating bits of the above examples are all 0, the number of elements is 10, but the generated geometric progression is all 1, because in Logspace, the starting and terminating bits represent the power of 10 (the default cardinality is 10), 0 for 10, 0 for 9, and the following:
If you want to change the cardinality, you need to modify its default cardinality, enter a fourth parameter base, and change its value:
If you do not want to include the tail node, you can add a parameter endpoint, the default setting is 1, and when necessary, the base is adjusted appropriately to accommodate the number of changes