Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline plchild  
#1 Posted : 27 May 2020 21:51:45(UTC)
plchild

Rank: Newbie

Groups: Registered
Joined: 27/11/2019(UTC)
Posts: 2
Poland

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

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 28 May 2020 01:40:09(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
lookup.JPG
thanks 1 user thanked Jean Giraud for this useful post.
on 28/05/2020(UTC)
Offline Davide Carpi  
#3 Posted : 28 May 2020 03:03:55(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
Also

2020-05-28 02_02_24-Window.png

(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
thanks 1 user thanked Davide Carpi for this useful post.
on 28/05/2020(UTC)
Offline Jean Giraud  
#4 Posted : 28 May 2020 03:56:07(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Truth table in more general, multi purpose.

Utilities Matrix Truth Table [Locate row_col].sm (44kb) downloaded 19 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 28/05/2020(UTC)
Offline Razonar  
#5 Posted : 28 May 2020 07:53:56(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. Another couple of solutions.

problem.sm (14kb) downloaded 18 time(s).

Best regards.
Alvaro.
thanks 2 users thanked Razonar for this useful post.
on 28/05/2020(UTC),  on 28/05/2020(UTC)
Offline Jean Giraud  
#6 Posted : 28 May 2020 15:29:32(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
More minimalist code.

FindIdx.PNG
thanks 1 user thanked Jean Giraud for this useful post.
on 28/05/2020(UTC)
Users browsing this topic
Guest
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.