Multidimensional Newton-Raphson method: Difference between revisions

m
→‎{{header|Wren}}: Minor tidy and corrected a previous copy/paste error.
m (syntax highlighting fixup automation)
m (→‎{{header|Wren}}: Minor tidy and corrected a previous copy/paste error.)
 
Line 946:
{{libheader|Wren-matrix}}
{{libheader|Wren-fmt}}
<syntaxhighlight lang="ecmascriptwren">import "./matrix" for Matrix
import "./fmt" for Fmt
 
var solve = Fn.new { |funcs, jacobian, guesses|
Line 1,020:
guesses = [1, 1, 0]
sols = solve.call(funcs, jacobian, guesses)
Fmt.print("Approximate solutions are x = $.7f, y = $.7f, z = $.7f", sols[0], sols[1], sols[2])</syntaxhighlight>
 
{{out}}
9,482

edits