Jump to content

Recommended Posts

Posted

Hello,

I am trying to create a polynomial formula using the formula tool but I get the following error message "t is not compatible with t²  at" with 'add' or 'subtract' after. Same with t²  and t³.

How can I create such formula? Example: 2 * $a^3 + 5 * $a^2 - 8 * $a + 200

Posted

Hello Arnaud,

the error is occuring because of the unit of the signal. I guess the unit of your signal is "t" which is converted to "t²" and "t³" for the respective parts of the formula. Therefore they cannot be used in an addition or subtraction. To get the fomula working simply convert the signal to a unitless one before calculating the polynom.

image.thumb.png.37e33cb82d8c39e3591a18e57e09d337.png

The resulting signal is unitless. You can use the setUnits() function to specify a unit if you need one.

Hope this helps.

Regards,

Thorsten

  • Like 2
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...