All Questions
3
questions
3
votes
1
answer
482
views
Trigonometric Subplots with Matplotlib
The code consists of 4 functions that result in a figure with 3 subplots:
a sine wave
a cosine wave
and the superposition of both (a bichromatic wave).
I have shown in 4 ways, the first two are ...
3
votes
1
answer
2k
views
Find LCM of two numbers
The problem is to find LCM of two numbers. I have tried to solve the problem in two ways. First by using the LCM formula :
LCM (a,b)= a*b/GCD(a,b).
Second, by ...
7
votes
2
answers
222
views
4 distinct integers, whose reciprocals sum up to 1
I wrote the following short python program to solve a math puzzle, which asked for all the 4-tuples of distinct natural numbers whose reciprocals sum up to 1.
...