Forgot password?
 Create new account
View 720|Reply 1

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

[Copy link]

462

Threads

969

Posts

9934

Credits

Credits
9934

Show all posts

青青子衿 Posted at 2019-3-9 17:33:38 |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

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

hbghlyj Posted at 2023-3-26 17:25:44
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.

手机版Mobile version|Leisure Math Forum

2025-4-20 21:55 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list