|
Size: 925
Comment:
|
Size: 900
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 32: | Line 32: |
| * '''Solution by''': * <Arnab Basu>, <Student>, <IIT Roorkee> * <Amit Tiwari>, <Student>, <IIT Roorkee> * <Rachit Jha>, <Student>, <IIT Roorkee> * <Shubham Mittal>, <Student>, <IIT Roorkee> |
* '''Solution by''': * Arnab Basu, Student, IIT Roorkee * Amit Tiwari, Student, IIT Roorkee * Rachit Jha, Student, IIT Roorkee * Shubham Mittal, Student, IIT Roorkee |
Book
Advanced Engineering Mathematics
Author
Erwin Kreyszig
Edition
8th Edition
#Solving Half Range Expansions
L = var('L')
f = 1
plot(f,(x,0,10))
assume(L>0)
c(x) = 0
s(x) = 0
for n in range(1,5):
an = integrate((2*f(x)*cos((n*pi*x)/L))/L, (x,0,L)) #Even Periodic Extension
bn = integrate((2*f(x)*sin((n*pi*x)/L))/L, (x,0,L)) #Odd Periodic Extension
c(x) = c(x) + an*cos((n*pi*x)/L)
s(x) = s(x) + bn*sin((n*pi*x)/L)
print 'The half range Cosine expansion'
print c(x),
print "+..."
print 'The half range Sine expansion'
print s(x),
print "+..."
* Solution by:
- Arnab Basu, Student, IIT Roorkee
- Amit Tiwari, Student, IIT Roorkee
- Rachit Jha, Student, IIT Roorkee
- Shubham Mittal, Student, IIT Roorkee
