Changeset 7423:8c6adc0a1533
- Timestamp:
- 11/24/07 23:55:05 (5 years ago)
- Branch:
- default
- Parents:
- 7419:4298b8f56b27 (diff), 7420:ce4aa966e4c1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
sage/rings/polynomial/polynomial_element.pyx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sage/rings/polynomial/polynomial_element.pyx
r7393 r7423 2312 2312 sage: f.roots() 2313 2313 [(1, 1)] 2314 sage: f.roots(ring=CC) 2315 [(1.00000000000000, 1), (-0.500000000000000 + 0.86602540378443 8*I, 1), (-0.500000000000000 - 0.866025403784...*I, 1)]2314 sage: f.roots(ring=CC) # note -- low order bits slightly different on ppc. 2315 [(1.00000000000000, 1), (-0.500000000000000 + 0.86602540378443...*I, 1), (-0.500000000000000 - 0.86602540378443...*I, 1)] 2316 2316 sage: f = (x^3 - 1)^2 2317 2317 sage: f.roots() … … 2747 2747 EXAMPLES: 2748 2748 sage: x = polygen(ZZ) 2749 sage: (x^3 - 1).complex_roots() 2750 [1.00000000000000, -0.500000000000000 + 0.86602540378443 8*I, -0.500000000000000 - 0.866025403784...*I]2749 sage: (x^3 - 1).complex_roots() # note: low order bits slightly different on ppc. 2750 [1.00000000000000, -0.500000000000000 + 0.86602540378443...*I, -0.500000000000000 - 0.86602540378443...*I] 2751 2751 2752 2752 TESTS:
Note: See TracChangeset
for help on using the changeset viewer.
