Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The problem is the meaning of c1, c2, ... is intermixed between parameters and function arguments. Take a look - you define:

Hmoy(alpha,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16,c17,c18,Z) = (I1 + I2 + I3 + I4 + I5) /norme

but te right-hand side does not take into account the given values of alpha,c1,....

So, either psi, I1, ..., I5, norme need to be defined as functions taking arguments alpha,c1,... explicitly, OR keep them as symbolic expressions and define Hmoy as such:

Hmoy = (I1 + I2 + I3 + I4 + I5) /norme

and evaluate it via substitution of parameters:

Hmoy.subs({alpha:2.091464938388313, c1:9.267331957693454, ...})

The problem issue here is that the meaning of c1, c2, ... is intermixed between parameters and function arguments. Take a look - you define:

Hmoy(alpha,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16,c17,c18,Z) = (I1 + I2 + I3 + I4 + I5) /norme

but te right-hand side does not take into account the given values of alpha,c1,....

So, either psi, I1, ..., I5, norme need to be defined as functions taking arguments alpha,c1,... explicitly, OR keep them as symbolic expressions and define Hmoy as such:

Hmoy = (I1 + I2 + I3 + I4 + I5) /norme

and evaluate it via substitution of parameters:

Hmoy.subs({alpha:2.091464938388313, c1:9.267331957693454, ...})

The issue here is that the meaning of c1, c2, ... is intermixed between parameters and function arguments. Take a look - you define:

Hmoy(alpha,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16,c17,c18,Z) = (I1 + I2 + I3 + I4 + I5) /norme

but te the right-hand side here does not take into account the given values of alpha,c1,....

So, either psi, I1, ..., I5, norme need to be defined as functions taking arguments alpha,c1,... explicitly, OR keep them as symbolic expressions and define Hmoy as such:

Hmoy = (I1 + I2 + I3 + I4 + I5) /norme

and evaluate it via substitution of parameters:

Hmoy.subs({alpha:2.091464938388313, c1:9.267331957693454, ...})