Skip to main content
12-Amethyst
November 13, 2024
Solved

What is wrong with the script? Two identical scrips but two different outputs

  • November 13, 2024
  • 2 replies
  • 772 views

Hi

I have two identical scripts with identical input data. However, the output vectors differ. What is wrong with the second one??

 

ksk_10594232_0-1731483399002.png

ksk_10594232_1-1731483477855.png

 

Thanks in advance! 

 

Best answer by LucMeekes

First:

You should attach the worksheet(s), instead of only pictures.

 

Then:

The 'scripts' are not identical, apart from the definition of phi.eff (1.6 versus 1.60):

The first one uses e, the base of the natural logarithm in the expression for phi.k.

The second one uses a variable e, the value of which probably has a unit of metres m.

 

Success!

Luc

 

2 replies

21-Topaz II
November 13, 2024

Hi,

One comment.

Don't use a variable name the same as a function name,

Cheers

Terry

LucMeekes23-Emerald IVAnswer
23-Emerald IV
November 13, 2024

First:

You should attach the worksheet(s), instead of only pictures.

 

Then:

The 'scripts' are not identical, apart from the definition of phi.eff (1.6 versus 1.60):

The first one uses e, the base of the natural logarithm in the expression for phi.k.

The second one uses a variable e, the value of which probably has a unit of metres m.

 

Success!

Luc

 

12-Amethyst
November 13, 2024

Thank you so much! The e-base solved the problem 🙂