Skip to main content
1 of 4
image_doctor
  • 10.3k
  • 23
  • 41

Here is an alternate way of structuring the defining of your function:

j[x_, n_, l_] := 3 /; l < n
j[x_, l_, l_] := 5
j[x_, n_, l_] := j[x, n - 1, l]
image_doctor
  • 10.3k
  • 23
  • 41