Article View: bit.listserv.graph-ti
Article #16Graph-TI - random numbers
From: MAOWENS
Date: Fri, 18 Nov 1994 14:48
Date: Fri, 18 Nov 1994 14:48
17 lines
1552 bytes
1552 bytes
Here is a method I use to generate a sequence of numbers that approximates a cu rve (for curve-fitting exercises). First, enter the curve you want to approxim ate, say Y1=3x^2-2x+4. Then use the sequence command to generate (or store to a list) some values near the curve, say seq(Y1+rand-.5, x, 1, 10, 1). This generates y-values within +-.5 of the expected value for x from 1 to 10, step 1. You can perform the standard tricks (e.g., rand*2-1 gives expected value +-1) to control precision. This works nicely for generating different st d. dev's., etc. ****************************************************** JOHN E. OWENS, ED.D. MAOWENS@ECUVM.CIS.ECU.EDU DEPARTMENT OF MATHEMATICS MAOWENS@ECUVM1.BITNET EAST CAROLINA UNIVERSITY PHONE: (919) 328-6419 129 AUSTIN FAX: (919) 328-6414 GREENVILLE, NC 27858 ******************************************************
Technical Details
Message-ID:
<941118.102100.EST.MAOWENS@ECUVM.CIS.ECU.EDU>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!paladin.american.edu!auvm!ECUVM.CIS.ECU.EDU!MAOWENSShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 104512,388fb68dc982870c X-Google-Attributes: gid104512,public X-Google-ArrivalTime: 1994-11-18 06:48:02 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!paladin.american.edu!auvm!ECUVM.CIS.ECU.EDU!MAOWENS Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU Newsgroups: bit.listserv.graph-ti Date: Fri, 18 Nov 94 09:48:02 EST From: MAOWENS@ECUVM.CIS.ECU.EDU Subject: Graph-TI - random numbers Sender: owner-graph-ti@dsmail.internic.net Precedence: bulk Reply-To: MAOWENS@ECUVM.CIS.ECU.EDU Message-ID: <941118.102100.EST.MAOWENS@ECUVM.CIS.ECU.EDU> Lines: 38