Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6720 > unrolled thread
| Started by | DrMajorBob <btreat1@austin.rr.com> |
|---|---|
| First post | 2011-11-25 10:00 +0000 |
| Last post | 2011-11-25 10:00 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: function... DrMajorBob <btreat1@austin.rr.com> - 2011-11-25 10:00 +0000
| From | DrMajorBob <btreat1@austin.rr.com> |
|---|---|
| Date | 2011-11-25 10:00 +0000 |
| Subject | Re: function... |
| Message-ID | <janp0h$b2b$1@smc.vnet.net> |
Here's a function that fits:
Clear[f]
MapIndexed[(f[#2[[1]]] = #1) &, {{0, 2, 4, 5}, {0, 3}, {0, 2, 3}, {0, 1, 3,
4}, {0, 2, 3, 5, 8}, {1, 3, 5}, "anything at all"}];
?f
Global`f
f[1]={0,2,4,5}
f[2]={0,3}
f[3]={0,2,3}
f[4]={0,1,3,4}
f[5]={0,2,3,5,8}
f[6]={1,3,5}
f[7]=anything at all
Bobby
On Thu, 24 Nov 2011 05:53:39 -0600, Meriens <meriens@gmail.com> wrote:
> Hi to everyone,
> I want to know if there is a method in Mathematica to find a function
> with
> these caracteristics:
> y(y1,y2,y3,y4,y5,y6) with
> y1={0,2,4,5};
> y2={0,3};
> y3={0,2,3};
> y4={0,1,3,4};
> y5={0,2,3,5,8};
> y6={1,3,5}.
> Thank you for all suggestions.
>
> MERIEL F.
--
DrMajorBob@yahoo.com
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web