This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
The
GpnN class is designed to facilitate operations with p-adic numbers, providing a comprehensive suite of functionalities for generating p-adic numbers, performing arithmetic operations, and conducting visual analyses among other advanced mathematical operations.
- Generate p-adic Numbers: Dynamically create p-adic numbers within specified constraints.
- Arithmetic Operations: Perform addition, subtraction, multiplication, and division on p-adic numbers.
- Export Functionality: Export p-adic numbers to a text file for external use.
- Console Printing: Print p-adic numbers to the console for inspection.
- Visual Representations: Generate visual representations of p-adic numbers and operations.
- Monna Map Conversion: Convert p-adic numbers to real numbers.
- Parisi Matrix Calculation: Compute and visualize the Parisi Matrix based on p-adic numbers.
- Solving ODEs: Utilize ordinary differential equations to analyze p-adic number dynamics.
- GIF Animation: Create GIF animations to visualize the behavior of p-adic numbers over time.
from padics.GpnN import GpnN
# Initialize with a prime p, and bounds n and N
gpn = GpnN(p=5, n=-2, N=3)