Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #16752

Very simple question

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!198.186.190.211.MISMATCH!s09-08.readnews.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail
From "Ste[hen Gray" <stevebg@roadrunner.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Very simple question
Date Wed, 9 Apr 2014 08:14:45 +0000 (UTC)
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <li2vhl$pd6$1@smc.vnet.net> (permalink)
Lines 28
Organization Time-Warner Telecom
NNTP-Posting-Date 09 Apr 2014 08:20:42 GMT
NNTP-Posting-Host 3ed58878.news.twtelecom.net
X-Trace DXC=a_Q5Sf1VYTPF`5M@]Oe7e\C_A=>8kQj6];[h;PUXBgbTR?JXX0Glei^EFiONJ7[GoV^931FoT_SmV
X-Complaints-To abuse@twtelecom.net
X-Received-Bytes 1522
X-Received-Body-CRC 3573579277
Xref csiph.com comp.soft-sys.math.mathematica:16752

Show key headers only | View raw


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@roadrunner.com

Back to comp.soft-sys.math.mathematica | Previous | NextNext in thread | Find similar


Thread

Very simple question "Ste[hen Gray" <stevebg@roadrunner.com> - 2014-04-09 08:14 +0000
  Re: Very simple question "Nasser M. Abbasi" <nma@12000.org> - 2014-04-09 08:46 +0000

csiph-web