🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #105

Help: MACSYMA Fourier Package

#105
From: SMITHJ
Date: Tue, 01 Aug 1989 15:54
31 lines
1247 bytes
I seem to be having trouble with the macsyma fourier package.

When I try to obtain sine coefficients for with
		F: A*X
	and
		F: A*X + B
I get the same result using FOURSIN(F,X,L);

		       -2 A L     N
		B   := ------ (-1)
		 N	N %PI

However when I perform the integrals myself with
	(2/L) * DEFINT(F*SIN(N*%PI*X/L),X,0,L);
I get something different for F: A*X + B, namely

			-2                 N
		B   := ----- [(A L + B)(-1)  - B]
		 N     N %PI		

The problem is easily found when one tries FOURSIN(A,X,L) and gets

		B  := 0
		 N
which is clearly incorrect.
Any suggestions to correct this problem would be appreciated.

/* Jeffery G. Smith, BS-RHIT (AKA Doc. Insomnia, WMHD-FM)       *
 *    The Ohio State University, Graduate Physics Program       *
 *        3193 Smith Lab, Columbus, OH 43210  (614) 292-5321    *
 *    smithj@ohstpy.mps.ohio-state.edu                          */
Technical Details
Message-ID: <3229@ohstpy.mps.ohio-state.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!ohstpy!smithj

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!ohstpy!smithj
From: SMITHJ@ohstpy.mps.ohio-state.edu
Newsgroups: comp.sources.bugs
Subject: Help: MACSYMA Fourier Package
Message-ID: <3229@ohstpy.mps.ohio-state.edu>
Date: 1 Aug 89 15:54:37 GMT
Lines: 31