How you define vector function in Mathematica?(adsbygoogle = window.adsbygoogle || []).push({});

For example, f is a vector function and f=(xy,yz,zx). How to define this in Mathematica and then how to calculate the value of the components of f for any number x, y, and z?

For scalar functions it goes as this:

f[x_]:=x^2

f[4]

Any idea for vectors?

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# How to define vector function in Mathematica

**Physics Forums | Science Articles, Homework Help, Discussion**