1 | initial version |
How can I enter the previous obtained value of f in the e3 to know the h?
f,q,r,h,i,g = var('f q r h i g') e1 = 4 * f^2* q + 5 * f^2 * r - 4 * q^2 + 5fr - 3qr e2 = -1/5(20f^2hq + 20f^2iq + 40fgq + 40fhq - 8fq^2 - 20hq^2 - 20iq^2 + 50fgr + 100fhr + 50fir - 4q^2 + 25gr + 25hr - 50qr - 25r^2) e3 = - 1/5(40fghq + 40fh^2q + 40fgiq + 40fhiq + 25fh^2r + 50fhir + 25fi^2r + 20g^2q + 40ghq + 20h^2q - 8gq^2 - 16hq^2 - 8iq^2 + 25g^2r + 100ghr + 75h^2r + 50gir + 50hir - 5fqr - 50hqr - 50iqr - 25r^2)
for u in solve( e2 == 0, g ): eq3 = (e3).subs({g:u.rhs()})
print( solve(eq3==0, h) )
Similarly, in a fourth equation e4, how can I enter the previous obtained values of f and g in order to know i?
2 | No.2 Revision |
How can I enter the previous obtained value of f in the e3 to know the h?
f,q,r,h,i,g = var('f q r h i g')
e1 = 4 * f^2* q + 5 * f^2 * r - 4 * q^2 + Similarly, in a fourth equation e4, how can I enter the previous obtained values of f and g in order to know i?