Re: Problem with multiple function calling from a novice...

• To: mathgroup at smc.vnet.net
• Subject: [mg58600] Re: Problem with multiple function calling from a novice...
• From: Peter Pein <petsie at dordos.net>
• Date: Sat, 9 Jul 2005 04:07:59 -0400 (EDT)
• References: <dal1tq\$ibc\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```sami schrieb:
> Hi all. I have a small problem, and I would like some help.
>
> Suppose I define a few functions, say a,b,c etc.
>
> Question 1: How can I call them from inside a program, so that they
> ALL
> show what they evaluate in turn? (Not just the last one, but each
> one.)
>
> Question 2: How can I modify an If...Then clause of the form:
>
> If[ <Condition> , a;b;c;...etc.]
>
> or a While loop:
>
> While[ <Condition> , a;b;c;...etc.]
>
> so that, again, they ALL show what they evaluate in turn? (Again, not
> just
> the
> last one like in this case).
>
> Thank you
>
> Sami
>
Hi Sami,

Qu.1: Print[a[],b[],c[]];

Qu.2: put them int a list: result=If[cond,{a[],b[],c[]}]
You can use for instance result[[2]] to get the value of b[].

--
Peter Pein
Berlin
http://people.freenet.de/Peter_Berlin/

```

• Prev by Date: Re: Problem with multiple function calling from a novice...
• Next by Date: Re: Problem with multiple function calling from a novice...
• Previous by thread: Re: Problem with multiple function calling from a novice...
• Next by thread: Re: Problem with multiple function calling from a novice...