in reply to Vector math with recdescent
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Vector math with recdescent
by davido (Cardinal) on Jul 29, 2006 at 05:23 UTC | |
That, in and of itself is impressive enough to me that I'll forgive your vector math skills being buried in cobwebs. I wish I could confidently (and accurately) assert that my Parse::RecDescent skills were strong. ;) Dave | [reply] |
by Gavin (Archbishop) on Jul 29, 2006 at 10:08 UTC | |
Ikegami never fails to come up with an answer. | [reply] |
|
Re^2: Vector math with recdescent
by gmol (Sexton) on Jul 29, 2006 at 05:31 UTC | |
{1,2,3}{4,5,6} #composing via dot-product =32 #=1*4 + 2*5 + 3*6 5(1,1,1,1,1} ={5,5,5,5,5} {1,2,3}x{4,5,6} ={4,10,16} What I *actually* want is a fair bit more complicated (like variable subsitution), but if I could see just dot cros and scalar mult..I think I could figure the rest out.... Is this just obvious to an expert recdescenter? | [reply] |
by ikegami (Patriarch) on Jul 29, 2006 at 08:03 UTC | |
I went a little beyond what you said. Notes: Todo:
Output
Update: Since I calculate as I go along instead of build a parse tree, Grammar and parse should be renamed (possibly to Evaluator and evalutate). Update: Added a test where parens make a difference. | [reply] [d/l] [select] |
by gmol (Sexton) on Jul 29, 2006 at 08:52 UTC | |
I should be able to take what you've done and get extend the basic idea I had here. The only other main thing I need in there is auto flattening. See how you've defined things and laid out functions etc. has helped enormously. Words cannot describe my gratitude. | [reply] |