Re: Very simple question
- To: mathgroup at smc.vnet.net
 - Subject: [mg132545] Re: Very simple question
 - From: "Dave Snead" <dsnead6 at charter.net>
 - Date: Thu, 10 Apr 2014 03:08:37 -0400 (EDT)
 - Delivered-to: l-mathgroup@mail-archive0.wolfram.com
 - Delivered-to: l-mathgroup@wolfram.com
 - Delivered-to: mathgroup-outx@smc.vnet.net
 - Delivered-to: mathgroup-newsendx@smc.vnet.net
 - References: <20140409081426.C0FCB69F2@smc.vnet.net>
 
Stephen --
Don't try to pass off a lower case ell as a one.
Change fx[ptl_]  to  fx[pt1_]
-- Dave Snead
-----Original Message----- 
From: Ste[hen Gray 
Sent: Wednesday, April 09, 2014 1:14 AM 
To: mathgroup at smc.vnet.net 
Subject: [mg132545] Very simple question 
I've been away from Mathematica for about 7 years.
Can anyone tell me why function fx gives an error message but fy does 
not? They look functionally the same to me.
Please send me an email about this.
fx[ptl_] := Module[{x1, y1, x2, y2, x3, y3},
   Print[pt1];
   x1 = pt1[[1, 1]]; y1 = pt1[[1, 2]];
   x2 = pt2[[2, 1]]; y2 = pt2[[2, 2]];
   x3 = pt3[[3, 1]]; y3 = pt3[[3, 2]];
   Print[x1, y1, x2, y2, x3, y3];
   ]
fx[{{1, 2}, {3, 5}, {4, 7}}]
fy[pt1_] := Module[{zz, x1, y1, x2, y2, x3, y3},
   zz = pt1;
   Print[zz];
   x1 = zz[[1, 1]]; y1 = zz[[1, 2]];
   x2 = zz[[2, 1]]; y2 = zz[[2, 2]];
   x3 = zz[[3, 1]]; y3 = zz[[3, 2]];
   Print[x1, y1, x2, y2, x3, y3]
   ]
fy[{{1, 2}, {3, 5}, {4, 7}}]
Thank you.
Steve Gray
stevebg at roadrunner.com
- References:
- Very simple question
- From: "Ste[hen Gray" <stevebg@roadrunner.com>
 
 
 - Very simple question