Posts by Wilson Vital • 5 points
2 posts
-
0
votes1
answer1982
viewsQ: define a polynomial of any degree in Python
I work with numerical calculus, my goal is to make use of a "least Squares". I’m defining a function in Python as follows: def F(P,x): return P[0] + P[1]*x + P[2]*x**2 + P[3]*x**3 Then I will define…
-
0
votes1
answer2140
viewsQ: How to define the tangent function in python?
I would like someone to help me define the tangent function using python with constraints at points where the function does not exist (pi/2 + k*pi(k integer). Thanks in advance.