Posts

Modified Euler

Image
Modified Euler ¶ A first order diffarential equation can be written as d y d x = f ( x , y ) " role="presentation"> d y d x = f ( x , y ) d y d x = f ( x , y ) It is given at x = x 0 " role="presentation" style="font-size: 119%; position: relative;"> x = x 0 x = x 0 , y = y 0 " role="presentation" style="font-size: 119%; position: relative;"> y = y 0 y = y 0 . So the next value of y " role="presentation" style="font-size: 119%; position: relative;"> y y i.e, y 1 " role="presentation" style="font-size: 119%; position: relative;"> y 1 y 1 is given by (1) y 1 = y 0 + ∫ x 0 x 1 d y d x d x = y 0 + ∫ x 0 x 1 f ( x , y ) d x " role="presentation"> y 1 = y 0 + ∫ x 1 x 0 d y d x d x = y 0 + ∫ x 1 x 0 f ( x , y ) d x (1) (1) y 1 = y 0 + ∫ x 0 x 1 d y d x d x = y 0 + ∫ x 0 x 1 f ( x , y ) d x Now the integral can be...

Random

Image
3rd Sem Project In [1]: import matplotlib.pyplot as plt import numpy as np from numpy import sin , cos , pi , sqrt , exp plt . style . use ([ 'science' , 'notebook' , 'grid' ]) 1. Matrix Multiplication ¶ If A m × n " role="presentation" style="font-size: 119%; position: relative;"> A m × n A m × n and B n × p " role="presentation" style="font-size: 119%; position: relative;"> B n × p B n × p then the product of A " role="presentation" style="font-size: 119%; position: relative;"> A A and B " role="presentation" style="font-size: 119%; position: relative;"> B B will be C m × p " role="presentation" style="font-size: 119%; position: relative;"> C m × p C m × p . Where C i j = ∑ k = 1 n ...

Popular posts from this blog

Stability

Mechanics experiment

Rotation of bottle