Author Topic: When do ExpReg and PwrReg throw an ERR:Domain?  (Read 3031 times)

0 Members and 1 Guest are viewing this topic.

Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
When do ExpReg and PwrReg throw an ERR:Domain?
« on: January 27, 2012, 08:08:01 am »
My program throws sometimes an ERR:Domain when I'm using ExpReg or PwrReg. But I don't want the program to stop, so how can I handle exeptions in these cases? How have the two lists have to be that there is no error?

Offline Torio

  • LV3 Member (Next: 100)
  • ***
  • Posts: 83
  • Rating: +22/-0
    • View Profile
Re: When do ExpReg and PwrReg throw an ERR:Domain?
« Reply #1 on: January 27, 2012, 04:59:29 pm »
ExpReg and PwrReg will throw an ERR:DOMAIN when one of the lists contain a 0.
To check if your list contains a zero, use that command :
Code: [Select]
prod(List)
It will calculate the product of each term of your list. So if the list contains a 0, the product will automatically be 0.
« Last Edit: January 27, 2012, 05:00:14 pm by Torio »
Sorry about my mistakes, I'm French.

Projects :  Pokemon TI-89 | Ti-Tank