Skip to main content
14-Alexandrite
May 5, 2014
Solved

odd even numbers

  • May 5, 2014
  • 2 replies
  • 5661 views

Hello,

my question is inside the mathcad sheet. it is about when the value is odd to return a certain value, and when it is even to return a different value. Thanks!

Best answer by Werner_E

Find attached one way to do it.

05.05.png

2 replies

25-Diamond I
May 5, 2014

You are making a mistake in thinking that in the odd case you will just get 2,6,,10, etc. Thats simply not true - Ceil will yield any multiples of 2 and because N=4 and 4 IS a multiple of 2 you get N=4.

23-Emerald I
May 5, 2014

Okay, If Npanels = 4 and TC = 18, you want Nf = 6.

Give us a few other examples:

Npanels = 4, TC = 17, Nf = ??

Npanels = 4, TC = 10, Nf = ??

Npanels = 4, TC = 7, Nf = ??

25-Diamond I
May 5, 2014

Interesting part would be different values of Npanels, as TC=17 and TC=7 sure should yield the same result (given the same Np).

Maybe something like this

05.05.png