Solution Exercise 152: solve equation graphically with matplotlib
Exercise 152 By using the matplotlib module, write a python algorithm which draw the curve of functions f(x) = x2 and g(x) = 2x +1 on the interval [-3 ,…
Python Courses & Exercises with solutions !
Exercise 152 By using the matplotlib module, write a python algorithm which draw the curve of functions f(x) = x2 and g(x) = 2x +1 on the interval [-3 ,…
Exercise 151 By using the matplotlib module, write a python algorithm which draw the curve of function f(x) = x2 on the interval [-3 , +3] Solution import matplotlib.pyplot as…
Exercise For each natural number n, we set: Sn = 1 + 2 + 3 + ... + n. Write a Python algorithm that finds the integer n for a…
Exercise 59 Write an algorithm in python which finds the list of all even integers from a given integer m to another given integer n. Example for m = 10…
Exercise 60 Write an algorithm in python which determines the list of all relative integers n <= 1000 such that: n + 7 divides 3n5 + 19. Solution def solutionsList(n):…
Exercise 86 Write a Python algorithm that determines the list of all common divisors of two given integers m and n. Solution def commonDivisors(m , n): # Initialize the list…
Exrcise 516 Write a Python algorithm which determines among the integers less than or equal to a given integer n, all the list of tuples of integers (i , j)…