SMath Studio Forum
»
SMath Studio
»
Questions
»
choose minimum positive number
Rank: Newbie
Groups: Registered
Joined: 27/11/2019(UTC) Posts: 2
|
for example if A=(a,b,c,d,e) and a=1, b=-3, c=4, d=2, e=-1,
how can I choose "d"(minimum positive number biger than one)
"A" is matrix
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
1 user thanked Jean Giraud for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
Also (move the equal in the booleans from the leftmost addendum to the rightmost if you don't want to match zeros from the original vector as positive values) Edited by user 28 May 2020 03:09:06(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
1 user thanked Jean Giraud for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Hi. Another couple of solutions. problem.sm (14kb) downloaded 18 time(s).Best regards. Alvaro.
|
2 users thanked Razonar for this useful post.
|
on 28/05/2020(UTC), on 28/05/2020(UTC)
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
More minimalist code.
|
1 user thanked Jean Giraud for this useful post.
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
choose minimum positive number
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.