First time here? Check out the FAQ!

Ask Your Question
1

The in-command

asked 5 years ago

FredrikAa gravatar image

Hello,

I tried using Amat=matrix(ZZ,1,1,3)

3 in Amat

but get false.

Have also tried

matrix(ZZ,1,1,3) in Amat

Any suggestions would be highly appreciated.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 5 years ago

tmonteil gravatar image

You should first turn your matrix into a list:

sage: 3 in Amat.list()
True
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 5 years ago

Seen: 793 times

Last updated: May 24 '20