BookmarkSubscribeRSS Feed
Steve_Shanghai
Calcite | Level 5
How to get the root of a complicated equation in IML? Is there any function or call function to do that?
Thanks alot!
1 REPLY 1
Rick_SAS
SAS Super FREQ
Depends if the function is one-variable or several variables. Also if polynomial or general nonlinear equation.
1) For one variable and polynomial, use POLYROOT. This finds real and complex roots.
2) For finding the real roots of general functions, see Example 9.2 of the SAS/IML doc:
http://support.sas.com/documentation/cdl/en/imlug/63541/HTML/default/viewer.htm#imlug_genstatexpls_s...

The Newton-Raphson method (2) will find one root for each initial condition, so if you are trying to find multiple roots, you might want to vary the initial condition.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

From The DO Loop
Want more? Visit our blog for more articles like these.
Discussion stats
  • 1 reply
  • 878 views
  • 0 likes
  • 2 in conversation