New answers tagged conditioned
4
As Matariki pointed out in comments, this is a simple syntax error. The infix version of Or in Mathematica is ||, not |.
Change this, like so:
Xhcmaleorfemale[maleorfemale_, h_] :=
Which[(h < 3 || h > 7), 0, (h > 2 && h < 8),
Which[maleorfemale == 0, Xhcmale, maleorfemale == 1,
Xhcfemale][[h - 2]]];
And you will get ...
Top 50 recent answers are included