You are on page 1of 2

11/7/2016

NewtonRaphsonZeroFinderVILabVIEW2011HelpNationalInstruments

Cart|Help Search

Yo u a r e h e r e : NI Ho me > S u p p o r t > Ma n u a l s > L a b V I E W 2 0 11 He l p

NewtonRaphsonZeroFinderVI
TableofContents
OwningPalette:ZerosVIs
Requires:FullDevelopmentSystem
Determinesazeroofa1Dfunctionclosetotwopointswiththehelpofthederivativeofthis
1Dfunction.Thetwovaluesformasearchlimitfortheunknownzeroofthe1Dfunction.
Youmustmanuallyselectthepolymorphicinstancetouse.

LabVIEW2011Help
EditionDate:June2011
PartNumber:371361H01
ViewProductInfo

Details
UsethepulldownmenutoselectaninstanceofthisVI.

DownloadHelp
(WindowsOnly)

Selectaninstance

NewtonRaphsonZeroFinder(Formula)

accuracycontrolstheaccuracyofthezerodetermination.Thedefaultis1.00E8,whichspecifiesthemaximum
deviationofthecalculatedsolutionfromtheactualsolution.
histhedeltavaluetocalculatethederivativeofthegivenformula.Thedefaultis1E8.
startisthestartpointoftheinterval.Thedefaultis0.0.
endistheendpointoftheinterval.Thedefaultis1.0.
formulaisastringrepresentingthefunctionunderinvestigation.Theformulacancontainanynumberofvalid
variables.
zeroisthedeterminedzeroofformula.zeroisagoodapproximationonlyfortheexactvalue.
f(zero)isthefunctionvalueatthepointgivenbyzero.Theanswershouldbeveryclosetozero.
ticksisthetimeeffortforthewholecalculationofthefunctionvaluesinmilliseconds.
errorreturnsanyerrororwarningfromtheVI.YoucanwireerrortotheErrorClusterFromErrorCodeVItoconvert
theerrorcodeorwarningintoanerrorcluster.

NewtonRaphsonZeroFinder(VI)

accuracycontrolstheaccuracyofthezerodetermination.Thedefaultis1.00E8,whichspecifiesthemaximum
deviationofthecalculatedsolutionfromtheactualsolution.
histhedeltavaluetocalculatethederivativeofthegivenformula.Thedefaultis1E8.
startisthestartpointoftheinterval.Thedefaultis0.0.
endistheendpointoftheinterval.Thedefaultis1.0.
f(x)isastrictlytypedreferencetotheVIthatimplementsthe1Dfunction.CreatethisVIbystartingfromtheVI
http://zone.ni.com/reference/enXX/help/371361H01/gmath/newton_raphson_zero_finder/

1/2

11/7/2016

NewtonRaphsonZeroFinderVILabVIEW2011HelpNationalInstruments

templatelocatedinlabview\vi.lib\gmath\zero.llb\ZeroFinderf(x)1D.vit.
datacontainsarbitraryvaluesthatpasstotheVIthatimplementsthefunction.
zeroisthedeterminedzerooff(x).zeroisagoodapproximationforonlytheexactvalue.
f(zero)isthefunctionvalueatthepointgivenbyzero.Theanswershouldbeveryclosetozero.
ticksisthetimeeffortforthewholecalculationofthefunctionvaluesinmilliseconds.
errorreturnsanyerrororwarningfromtheVI.YoucanwireerrortotheErrorClusterFromErrorCodeVItoconvert
theerrorcodeorwarningintoanerrorcluster.

NewtonRaphsonZeroFinderDetails
Letfbethegivenfunction.TheNewtonRaphsonZeroFinderVIusesamethodthatcombinesthesimplemidpointstrategyand
theNewtonstrategy.
Midpointstrategy:

Newtonstrategy:

wherex 1andx 2aregivenguesseswith


f(x 1)f(x 2)<0
ThefollowingillustrationdemonstratestheNewtonstrategy.

YourFeedback!

Poor|Excellent

DocumentQuality?
AddComments

Yes No
AnsweredYourQuestion?

MyProfile|Privacy|Legal|ContactNI 2016NationalInstrumentsCorporation.Allrightsreserved.|

http://zone.ni.com/reference/enXX/help/371361H01/gmath/newton_raphson_zero_finder/

EMailthisPage

2/2

You might also like