Path: blob/master/activities/miscellanea-python.ipynb
934 views
Task 1
This homework is an activity intended to solve some basic problems in python in order to know its basic capabilities.
Due to: May 3
Miscellanea
Solve the next exercises:
1. Write a program that sort a list of N numbers.
2. Find all the elements of a list of N numbers that are greater than the mean value of them. Then, create a new list with those numbers.
3. Write a program that gives the name of students who passed a course (grade over ).
4. Write a program that evaluates the next expression for given values of , and :
you may find useful the library math
for the functions and . Import it as import math
5. Find all the prime numbers between 1 and 100.
6. Write a program that calculates the factorial of a given number.
7. Write a program that evaluates the function by using the Taylor expansion using , and terms.
$$\cos(x) = \sum_{n=0}^\infty \frac{(-1)^n}{(2n!)}x^{2n}\ \ \$$8. Write a program that calculates by using the next approximations:
and
Which approximation takes less terms for achieving a good accuracy?