Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question
1

Can I create 10-adic numbers?

asked 2 years ago

Lilly2 gravatar image

I'm learning about P-adics, and would like to play around a bit with 10-adic numbers, to follow along with some tutorials.

Unfortunately so far all ways I've tried to create 10-adic numbers in Sage resulted in the error "p must be prime".

I understand non-prime-adics have their issues, but can I still make it work somehow?

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
2

answered 2 years ago

Max Alekseyev gravatar image

updated 2 years ago

slelievre gravatar image

PARI/GP supports p-adic numbers with non-prime p:

This can be used inside Sage:

sage: a = gp('1 + O(10^3)')
sage: a
1 + O(10^3)
sage: a + 100
1 + 10^2 + O(10^3)
Preview: (hide)
link
0

answered 2 years ago

Klaus Scheicher gravatar image

You can define infinitely long decimal numbers, but you can not divide such numbers in any case. This numbers form a ring, but not a field. Therefore the error message.

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: 2 years ago

Seen: 299 times

Last updated: Jun 30 '22