Processing math: 100%
Ask Your Question
1

How to check that field is Number Field

asked 3 years ago

petRUShka gravatar image

updated 3 years ago

Suppose I have field FF:

sage: FF
Number Field in z with defining polynomial t^2+1

How to programmatically check that this field is Number Field? Something like FF.is_number_field()...

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 3 years ago

rburing gravatar image

See the category of number fields:

sage: NumberField(x^2 + 1, 'a') in NumberFields()
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

1 follower

Stats

Asked: 3 years ago

Seen: 219 times

Last updated: Jul 06 '21