Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

developpement limité sinus python

import math
def sin(x,n):
    z = 0
    for i in range(n+1):
        z = z + ( (-1)**i / math.factorial(2*i+1) ) * x**(2*i+1)
    return float("{:.4f}".format(z))
Comment

PREVIOUS NEXT
Code Example
Python :: sklearn grid search show progress 
Python :: First Python Program: Hello World 
Python :: os.path.dirname(__file__) 
Python :: housie numbers using python 
Python :: python mouse listener 
Python :: how to add items to tuple in python 
Python :: dataframe to csv 
Python :: sudo apt-get install python2-pip 
Python :: import csv as dic 
Python :: pickle.load from gpu device to cpu 
Python :: Python Program to Find HCF or GCD 
Python :: pandas.describe per group 
Python :: python manual elif 
Python :: how to get ping from computer IN PYTHON 
Python :: Import "sendgrid" could not be resolved django 
Python :: how to find number of categories in python 
Python :: python os path safe string 
Python :: column to list pyspark 
Python :: print index and value on each iteration of the for loop in Python 
Python :: python sum certain postions of array 
Python :: how does a neural network work 
Python :: confusion matrix code 
Python :: write code in python to Open all links on a page in separate browser tabs 
Python :: python yield from 
Python :: django migrate 
Python :: handlebars python 
Python :: python avg 
Python :: how to use with statementin python 2.4 
Python :: string to list 
Python :: how to get left click input in pygame 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =