Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. ? f(x) = (1-x)^(-2/3) * (1+x)^(-1/3) / (x^2+4);
  2. ? J = intnum( x=-1, 1, f(x));
  3. ? v = ( 1+ sqrt(-3) ) / 2;
  4. ? u = v^2;
  5. ? c = ( (3+4*I)/5 )^(1/3)
  6. %130 = 0.952608221822056413578700298090 + 0.304199894340908282509646316476*I
  7. ?
  8. ? 2*Pi / sqrt(3) / 10 * real( (2+I)/c )
  9. %131 = 0.801487589833185015198191025384
  10. ? J
  11. %132 = 0.801487589833185015171411244041
  12.  
  13. sage: s = (2+i) / ( (3+4*i)/5 )^(1/3)
  14. sage: s.minpoly()
  15. x^6 - 20*x^3 + 125
  16. sage: K.<S> = NumberField(s.minpoly())
  17. sage: s.minpoly().base_extend(K).factor()
  18. (x - S) * (x + 1/25*S^5 - 4/5*S^2) * (x^2 + S*x + S^2) * (x^2 + (-1/25*S^5 + 4/5*S^2)*x - 1/5*S^4 + 4*S)
  19. sage: 5/S
  20. -1/25*S^5 + 4/5*S^2
  21. sage: (S+5/S).minpoly()
  22. x^3 - 15*x - 20
  23.  
  24. sage: _.roots(ring=RR, multiplicities=False)
  25. [-2.80560283257759, -1.61322984339245, 4.41883267597004]
  26.  
  27. sage: root1, root2, root3 = ( S + 5/S ).minpoly().roots(ring=RR, multiplicities=False)
  28. sage: root3
  29. 4.41883267597004
  30. sage: ( 2*pi / sqrt(3) / 20 * root3 ).n()
  31. 0.801487589833185
  32. sage: numerical_integral( lambda x: 1 / (1-x)^(2/3) / (1+x)^(1/3) / (4+x^2), (-1,1) )[0]
  33. 0.801485689398172
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement