I'm wondering if it's possible to define a natural variable n in TI-Nspire CAS. For example I'd like to write:
Asked
Active
Viewed 691 times
2 Answers
1
You can't define your own natural variables. However, Nspire has the following special variables you can use:
- @n0...@n255: Restricted to natural numbers
- @c0...@c255: Restricted to real numbers
You can replace the original variables with them by hand or for convience just put |x=@n0 and y=@n1
at the end of line.
Example: You are calculating fourier coefficients and know that variable k will only get real numbers from Σ operation. Replacing k with @n1 will simpilfy the function. Picture
(Calculator needs to be in RAD mode if you want to try)

wolfrevo
- 48
- 5
-
Hello @wolfrevo thank you for your answer.Can you add an example please? – Gennaro Arguzzi Feb 21 '22 at 12:43
-
Hi! Added an example, hopefully it clarifies – wolfrevo Feb 24 '22 at 18:25
0
The answer is no. Variables in NSpire store a value. A variable has no type. Solve might return @n1 in a result to indicate an arbitrary natural number, but you can tell solve to look for integer solutions only.

soegaard
- 30,661
- 4
- 57
- 106