Re: How to create {{x1,y1}, ..., {xn,yn}} data from {x1,...,xn} and {y1, ..., yn}
- To: mathgroup at smc.vnet.net
- Subject: [mg63786] Re: [mg63755] How to create {{x1,y1}, ..., {xn,yn}} data from {x1,...,xn} and {y1, ..., yn}
- From: Sseziwa Mukasa <mukasa at jeol.com>
- Date: Sat, 14 Jan 2006 02:32:36 -0500 (EST)
- References: <200601130948.EAA03554@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
On Jan 13, 2006, at 4:48 AM, youngjin.michael at gmail.com wrote:
> Hello,
>
> I would like to know how to create a table format data such as {{x1,
> y1}, {x2, y2}, ..., {xn, yn}} from
> {x1, x2, ..., xn} and {y1, y2, ..., yn}.
Transpose[{{x1,x2,...},{y1,y2,...}}]
> I also would like to know if a user-defined function in Mathematica
> can
> have more than one statements in its body.
Yes, use ; to form compound expresssions.
Regards,
Ssezi
- References:
- How to create {{x1,y1}, ..., {xn,yn}} data from {x1,...,xn} and {y1, ..., yn}
- From: "youngjin.michael@gmail.com" <youngjin.michael@gmail.com>
- How to create {{x1,y1}, ..., {xn,yn}} data from {x1,...,xn} and {y1, ..., yn}