Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. import numpy as np
  2. import math as mt
  3. from sympy import *
  4.  
  5. x = Symbol('x')
  6.  
  7. formula = x**4 - 625
  8.  
  9. a = formula.diff(x1,2)
  10. value = a.evalf(subs={x:2})
  11.  
  12. epsilon = 0.00001
  13. a = 0
  14. b = 3
  15. def function(x):
  16.     result = x**4 - 625
  17.     return result
  18.  
  19. x1 = a - function(a)/(function(b) - function(a))*(b-a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement