in reply to Re^4: The problem of getting the unit vector "Undefined subroutine &main::Normalize"
in thread The problem of getting the unit vector "Undefined subroutine &main::Normalize"

The problem is, we don't know your MaterialsScript module, so we'd be guessing. It seems to be a closed-source product of Accelrys, and I don't see any documentation online.
  • Comment on Re^5: The problem of getting the unit vector "Undefined subroutine &main::Normalize"

Replies are listed 'Best First'.
Re^6: The problem of getting the unit vector "Undefined subroutine &main::Normalize"
by windcrazy86 (Novice) on Aug 31, 2017 at 20:39 UTC

    Yeap, you are right. I thought Normalize is a function in accelrys or perl before. However, it seems it's not for both. So I am using perl to write the sub Normalize to get unit vector from vector and it doesn't have relationship to materialsscript module anymore. Because I am new to perl, it takes me time to read related rules in perl and write it