Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm trying to play around with vectors in Grapher.app, but I'm getting an error when I try to A: multiply two vectors (specified as a vertical matrix) together, and B: multiply a vector by a scalar value. Here's my dilemma in picture form: vector math in grapher

Any ideas?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

If you want to multiply two column vectors don't you have to transpose one of them? I got the transpose operator by typing ^T. (That's caret + T, not Ctrl+T)

I was able to multiply a vector by a scalar.

vector operations

In your screenshot, the subscripts aren't consistent. Maybe it's part of your problem or maybe it's just some math I don't understand. This is all on the edge of my math knowledge.

Epilogue

For those who are interested, here is bjz's screenshot of his working version:

working version

share|improve this answer
1  
Cheers mate, I got it to work. And yes, my maths knowledge isn't great – I'm just using Grapher to sketch out my algorithms before I commit to code. –  bjz May 11 '12 at 9:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.