Message Boards Message Boards

0
|
4505 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Halley's method of Square Root - How to render subscript n?

Posted 10 years ago

How do I get Wolfram to render X with a subscript n, like that found in Halley's method for square root? I'm having a go with a new square root algorithm, and need to express iteration. See pic attached.

enter image description here

POSTED BY: J Robinson
3 Replies

Please see the documentation for Subscript:

http://reference.wolfram.com/language/ref/Subscript.html

Subscript is mostly useful for creating formatted output for reading. I would only suggest using Subscripts in code to experienced Mathematica programmers. Subscripted variables are full expressions and this creates confusion with newer programmers.

With[{xn = Subscript[x, n]}, 
 Subscript[x, n + 1] == 2 f[xn] f'[xn]/(2 xn^2 - f[xn] f''[xn])]
POSTED BY: Sean Clarke
Posted 10 years ago

Thanks Sean. Will this also work on Wolfram Alpha Pro website?

POSTED BY: J Robinson

I'm not sure I understand your follow-up. I mean Wolfram|Alpha isn't for programming really. You kinda try things and if they work, then they work. Are you looking to use Subscripted variables with it or have it output formatted math formula? My advice is to just try it.

POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract