Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplifications Involving Infinity [FEATURE] #182

Open
andrew-murdza opened this issue Jul 5, 2024 · 0 comments
Open

Simplifications Involving Infinity [FEATURE] #182

andrew-murdza opened this issue Jul 5, 2024 · 0 comments
Labels
feature New feature or enhancement

Comments

@andrew-murdza
Copy link

Implement these simplification rules

Base of Infinity

  • {match:'\infty^a',replace:'\infty',condition:'a>0'}
  • {match:'\infty^a',replace:'0',condition:'a<0'}
  • {match:'(-\infty)^a',replace:'0',condition:'a<0'}
  • {match:'(-\infty)^n',replace:'\infty',condition:'a is a even integer'}
  • {match:'(-\infty)^{n/m}',replace:'\infty',condition:'n is an even integer and m is an odd integer'}
  • {match:'(-\infty)^n',replace:'-\infty',condition:'a is an odd integer'}
  • {match:'(-\infty)^{n/m}',replace:'\infty',condition:'n is an odd integer and m is an odd integer'}
  • Roots use the same rules as powers (probably don't need code for this)

Power of Infinity

  • {match:a^\infty,replace:'\infty',condition:'a>1'}
  • {match:a^\infty,replace:'0',condition:'0<a<1'}
  • {match:a^{-\infty},replace:'0',condition:'a>1'}
  • {match:a^{-\infty},replace:'\infty',condition:'0<a<1'}
  • \exp(\infty)->\infty
  • \exp(-\infty)->0

Log of Infinity

  • \log(\infty)->\infty
  • \ln(\infty)->\infty

Trig functions

  • \sin(\infty)->NaN
  • \cos(\infty)->NaN
  • \tan(\infty)->NaN
  • \cot(\infty)->NaN
  • \sec(\infty)->NaN
  • \csc(\infty)->NaN
  • \sin(-\infty)->NaN
  • \cos(-\infty)->NaN
  • \tan(-\infty)->NaN
  • \cot(-\infty)->NaN
  • \sec(-\infty)->NaN
  • \csc(-\infty)->NaN

Inverse Trig Functions

  • \arcsin(\infty)->NaN
  • \arccos(\infty)->NaN
  • \arcsin(-\infty)->NaN
  • \arccos(-\infty)->NaN
  • \arctan(\infty)->\frac{\pi}{2}
  • \arctan(-\infty)->-\frac{\pi}{2}
  • \arccot(\infty)->0
  • \arccot(-\infty)->\pi
  • \arcsec(\infty)->\frac{\pi}{2}
  • \arcsec(-\infty)->\frac{\pi}{2}
  • \arccsc(\infty)->0
  • \arccsc(-\infty)->0

Hyperbolic Trig Functions

  • \sinh(\infty)->\infty
  • \sinh(-\infty)->-\infty
  • \cosh(\infty)->\infty
  • \cosh(-\infty)->\infty
  • \tanh(\infty)->1
  • \tanh(-\infty)->-1
  • \coth(\infty)->1
  • \coth(-\infty)->-1
  • \sech(\infty)->0
  • \sech(-\infty)->0
  • \csch(\infty)->0
  • \csch(-\infty)->0

Inverse of Hyperbolic Trig Functions

  • \arcsinh(\infty)->\infty
  • \arcsinh(-\infty)->-\infty
  • \arccosh(\infty)->\infty
  • \arccosh(-\infty)->NaN
  • \arctanh(\infty)->NaN
  • \arctanh(-\infty)->NaN
  • \arccoth(\infty)->NaN
  • \arccoth(-\infty)->NaN
  • \arcsech(\infty)->NaN
  • \arcsech(-\infty)->NaN
  • \arccsch(\infty)->0
  • \arccsch(-\infty)->0
@andrew-murdza andrew-murdza added the feature New feature or enhancement label Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or enhancement
Development

No branches or pull requests

1 participant