Cube Root and Cube

scooter7
scooter7 New Altair Community Member
edited November 2024 in Community Q&A
Hi,

When trying to generate attributes, I know how to use the built-in functions for log transforms, etc. However, i do not know how to generate the cube root of a variable. Similarly, i also want to know how to generate the cube of a variable. Can someone please help me with these transformations?

Thanks,
James
Tagged:

Answers

  • Andrew2
    Andrew2 New Altair Community Member
    Hello James

    Within the Generate Attributes operator you can use the function pow() - so for an attribute called att1, the cube would be pow(att1,3) and the cube root would be pow(att1,1/3)

    regards

    Andrew
  • scooter7
    scooter7 New Altair Community Member
    Thanks!