Forgot password
 Register account
View 841|Reply 1

让MMA求出某类不定方程的通解?

[Copy link]

461

Threads

959

Posts

4

Reputation

Show all posts

青青子衿 posted 2019-3-9 17:33 |Read mode
MMA能求出三元二次不定方程的特解,如何求出三元二次不定方程的通解呢?
如何编写算法,让MMA求出三元二次不定方程的通解
  1. Solve[x^2 + 7 y^2 == z^2 && 0 < x < 100 && 0 < y < 100 &&
  2.   0 < z < 100 && GCD[x, y, z] == 1, {x, y, z}, Integers]
Copy the Code

3211

Threads

7832

Posts

52

Reputation

Show all posts

hbghlyj posted 2023-3-26 17:25
The general solution to x^2 + 7y^2 = z^2 is:

x = a^2 - 7b^2
y = 2ab
z = a^2 + 7b^2

where a and b are integers.

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 06:02 GMT+8

Powered by Discuz!

Processed in 0.012322 seconds, 22 queries