Skip to content

marcinpz/exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Exercises

ex1

Program for solving linear equations

https://blog.etrapez.pl/macierze/rzad-macierzy-w-ukladach-rownan-liniowych-z-parametrem/

http://kitchingroup.cheme.cmu.edu/blog/2013/02/27/Solving-linear-equations/

http://kitchingroup.cheme.cmu.edu/blog/2013/03/01/Determining-linear-independence-of-a-set-of-vectors/

ex2

Program finds Amstrong numbers in given range.

N digit Amstrong number is the number equal sum of N-th power of its digits.

Example: 153 = 1^3 + 5^3 + 3^3

ex3

Program checks hyphotesis that for each natural number: - it is palindrom - or x += reversed(x) is palindrom (after some recursion)

Example: 121 is palindrom because reversed is the same number 78 because 78+87=165, 165+561=726, 726+627=1353, 1353+3531=4884 - is palindrom

ex4

Program finds prime numbers with Eratostene sieve method.

About

Python exercises

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages