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


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

Re: function...

From DrMajorBob <btreat1@austin.rr.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: function...
Date 2011-11-25 10:00 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <janp0h$b2b$1@smc.vnet.net> (permalink)
References <201111241153.GAA28865@smc.vnet.net>

Show all headers | View raw


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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: function... DrMajorBob <btreat1@austin.rr.com> - 2011-11-25 10:00 +0000

csiph-web