Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Double evaluation in recursive function

  • To: mathgroup at
  • Subject: [mg19510] Double evaluation in recursive function
  • From: "Benoit Debaque" <bdebaque at>
  • Date: Sat, 28 Aug 1999 15:53:26 -0400
  • Organization: Labo SIP, Univ Paris V
  • Sender: owner-wri-mathgroup at

Hi all !

Does somebody know how to use 2 calls at a time in a recursive function...?

for example I want to evaluate the following

myf[x_] : =  If[ x > 5, i = x ; j = x ; i--; j--; myf[i]; myf[j] ]

I get the answer from


apparently Mathematica doesn't like much the second term myf[j], because it
start from 5 to 5 ! and not from 6 to 5 like variable can I
manage such a problem ?

Thanx for any suggestion or advice.


Laboratoire des Systèmes Intelligents de Perceptions
UFR Mathématiques-Informatique
Phone: 01-41-48-08-55 / 01-44-55-35-58
web site:

  • Prev by Date: Cleveland's algorithms
  • Next by Date: Stochastic differential equations
  • Previous by thread: Cleveland's algorithms
  • Next by thread: Stochastic differential equations