Differences between revisions 2 and 3
Revision 2 as of 2010-12-18 07:07:23
Size: 925
Editor: ArnabBasu
Comment:
Revision 3 as of 2010-12-18 07:10:00
Size: 900
Editor: ArnabBasu
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

Kreyszig-10.4-20-U (last edited 2010-12-18 07:12:56 by ArnabBasu)