Message Boards Message Boards

0
|
2424 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

VectorPlot3D doesn't work with defined function?

Posted 3 years ago

I just started learning about mathematica so sorry if this is a stupid question. I'm trying to define a vector function so that when I input it into my 3D vector plot it returns something, but it doesn't do anything. But when I copy paste it directly into the VectorPlot3D it shows up. Am i assigning my function wrong?

POSTED BY: Paloma Zuerlein

Your function already returns a vector and you put brackets around it again.

f[x,y,z] = {a, b ,c}

you define

{f[x,y,z]}={{a,b,c}}

But for me in Mathematica 12.2 both examples produce vector plots.

POSTED BY: Martijn Froeling
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract