Any Octave users? What is this code snippet actually doing?

2013-04-06 Thread Bruce Labitt
I'm trying to understand a chunk of 3D FDTD code that I downloaded from the publisher of the book, Computational Electrodynamics. It is in matlab, so I tried to run it in Octave. Something is not quite right, so it doesn't execute. That doesn't matter to me right now. The piece of code is:

Re: Any Octave users? What is this code snippet actually doing?

2013-04-06 Thread David Rysdam
On Sat, 06 Apr 2013 14:03:58 -0400, Bruce Labitt bruce.lab...@myfairpoint.net wrote: I'm trying to understand a chunk of 3D FDTD code that I downloaded from the publisher of the book, Computational Electrodynamics. I can't answer your question, but I may enjoy an elaboration of the above.

Re: Any Octave users? What is this code snippet actually doing?

2013-04-06 Thread Bruce Dawson
Unless matlab treats floats and ints differently than most other languages, I'd say its a bug because zero over anything is always zero. But, I have no clue as to what context its running in, so it may be deliberate. --Bruce On 04/06/2013 02:03 PM, Bruce Labitt wrote: I'm trying to understand

Re: Any Octave users? What is this code snippet actually doing?

2013-04-06 Thread Bruce Labitt
On 04/06/2013 02:21 PM, David Rysdam wrote: On Sat, 06 Apr 2013 14:03:58 -0400, Bruce Labitt bruce.lab...@myfairpoint.net wrote: I'm trying to understand a chunk of 3D FDTD code that I downloaded from the publisher of the book, Computational Electrodynamics. I can't answer your question, but

Re: Any Octave users? What is this code snippet actually doing?

2013-04-06 Thread David Rysdam
On Sat, 06 Apr 2013 14:34:27 -0400, Bruce Labitt bruce.lab...@myfairpoint.net wrote: On 04/06/2013 02:21 PM, David Rysdam wrote: On Sat, 06 Apr 2013 14:03:58 -0400, Bruce Labitt bruce.lab...@myfairpoint.net wrote: I'm trying to understand a chunk of 3D FDTD code that I downloaded from

Re: Any Octave users? What is this code snippet actually doing?

2013-04-06 Thread Michael ODonnell
kmax=1; kfactor=(kmax-1.0)/delta/(orderbc+1.0)/delbc^orderbc; Unless matlab treats floats and ints differently than most other languages, I'd say its a bug because zero over anything is always zero. Shame on anybody who'd intentionally code something like that without also providing a

Re: Any Octave users? What is this code snippet actually doing?

2013-04-06 Thread Bruce Labitt
If I knew how to debug in octave I'd tell you. Maybe tonight I'll brush up on octave... So far my python script runs but outputs 0. Kfactor seems to be evaluated as 0. I bet it would work better if kfactor != 0... On Apr 6, 2013 4:59 PM, Michael ODonnell michael.odonn...@comcast.net wrote:

Re: [GNHLUG] MerriLUG: April 2nd 2013 - Bitcoin

2013-04-06 Thread Ben Scott
On Thu, Apr 4, 2013 at 5:27 PM, David Rysdam da...@rysdam.org wrote: Peer-to-peer is two guys meeting on a street corner and saying Hey, wanna buy some Bitcoins? :) What if 100 guys meet on a street corner? Umm... then there's more of them? :) It doesn't inherently affect the