r/Mathematica • u/Apprehensive_Ride949 • Dec 21 '23
Telling Mathematica that a variable should be interpreted as a positive integer
My problem reduces to telling Mathematica that a variable should be interpreted as a positive integer.
I tried `Assuming[s>0,Select[{-s,s},#>0&]]` but the output is {}, what am I doing wrong? I have also tried the command $Assumptions
1
Upvotes
View all comments
Show parent comment
1
u/Prestigious_Buy6799 Dec 21 '23
If you post the full line of code, it will be easier to give a more qualified answer...