Symbolic Vector Manipulation Software?

Click For Summary

Discussion Overview

The discussion revolves around the capabilities of symbolic vector manipulation software, specifically in the context of performing derivatives involving vectors and matrices. Participants explore the use of software like Maple and MATLAB for vector calculus operations.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • David seeks software that can compute derivatives of expressions involving vectors and matrices, specifically asking if Maple or MATLAB can perform this task.
  • Some participants suggest that if the matrix A is symmetric, the derivative should yield 2Ax, while if it is not, the result would be (A+A^T)x.
  • David expresses confusion about the capabilities of Maple and MATLAB, indicating he believes they cannot handle the required vector calculus operations.
  • Another participant challenges David's assertion, stating that Maple is designed for such tasks and requests a more specific question.
  • David provides a specific example of code he is trying to run in Maple, which results in an error, indicating he may not be using the software correctly.
  • A participant suggests that the issue may relate to needing to include a specific package in Maple and mentions the importance of setting the dimension correctly.
  • A later reply asks if David and another participant have resolved their issues, indicating ongoing uncertainty about the solution.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the capabilities of Maple and MATLAB for the tasks David describes, and there is ongoing confusion about the correct approach to take in Maple.

Contextual Notes

Limitations include potential misunderstandings of software capabilities, the need for specific packages or settings in Maple, and unresolved errors in the code provided by David.

Who May Find This Useful

Individuals interested in symbolic computation, particularly those working with vector calculus in software like Maple or MATLAB.

daviddoria
Messages
96
Reaction score
0
I would like to do something like a derivative with respect to a vector or really anything involving a vector (of known dimension, but unknown values) going in and a vector coming out:

x= 4 by 1 vector
A = 4 by 4 matrix
diff( Transpose(x) * A * x, x)

should return (1/2)*A*x

Is there software that can do this? I am familiar with maple and matlab, but I don't think either of them can do this.

Any suggestions?

Thanks!

David
 
Physics news on Phys.org
If A is symmetric it is [itex]2Ax[/itex], otherwise it is [itex](A+A^T)x[/itex] ! And I don't understand why you can not do with Maple or MATLAB. Do you mean handling vector calculus?
 
ahh yea sorry 2Ax or (A+A^T)x is clearly correct.

So that is would I would like to do, either with Maple or Matlab. Does anyone know how?
 
Do what? The whole Maple is designed for this! Please, take the time for asking one exact question.
 
Here is one exact question. I want to do this:

with(LinearAlgebra);
b:=Vector(x,3);
B:=Matrix(A,3,3);
f:=Transpose(b)*B*b;
diff(f,b)

but i get:
Error, (in rtable/Product) invalid arguments
when defining f

am I going about this wrong?
 
Now, I see your point but I can't give you the exact code because I don't have Maple on this computer. But I can tell you that it should be also related with ">>with(VectorCalculus);". Also, it would surprise me if it works without setting the dimension to, say, "m". Sorry for this sloppy answer but I have to access to Maple first to give a correct answer.
 
trambolin, daviddoria, did you figure out the answer to this question? Thanks!
 

Similar threads

  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K