<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, verifying solutions of tan(x)=x</title>
    <link>http://www.mapleprimes.com/questions/35850-Verifying-Solutions-Of-Tanxx</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Wed, 10 Jun 2026 21:36:01 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 21:36:01 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, verifying solutions of tan(x)=x</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, verifying solutions of tan(x)=x</title>
      <link>http://www.mapleprimes.com/questions/35850-Verifying-Solutions-Of-Tanxx</link>
    </image>
    <item>
      <title>verify or testfloat or fnormal</title>
      <link>http://www.mapleprimes.com/questions/35850-Verifying-Solutions-Of-Tanxx?ref=Feed:MaplePrimes:verifying solutions of tan(x)=x:Comments#answer59541</link>
      <itunes:summary>&lt;p&gt;You could use &lt;b&gt;testfloat &lt;/b&gt;(or &lt;b&gt;verify &lt;/b&gt;with &lt;b&gt;float &lt;/b&gt;option), or apply &lt;b&gt;fnormal &lt;/b&gt;first.&lt;/p&gt;
&lt;p&gt;I prefer &lt;b&gt;verify,float&lt;/b&gt; usually, for floating-point scalar number comparison.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;You could use &lt;b&gt;testfloat &lt;/b&gt;(or &lt;b&gt;verify &lt;/b&gt;with &lt;b&gt;float &lt;/b&gt;option), or apply &lt;b&gt;fnormal &lt;/b&gt;first.&lt;/p&gt;
&lt;p&gt;I prefer &lt;b&gt;verify,float&lt;/b&gt; usually, for floating-point scalar number comparison.&lt;/p&gt;</description>
      <guid>59541</guid>
      <pubDate>Sat, 30 Jan 2010 18:44:31 Z</pubDate>
      <itunes:author>pagan</itunes:author>
      <author>pagan</author>
    </item>
    <item>
      <title>thanks for the reply. i</title>
      <link>http://www.mapleprimes.com/questions/35850-Verifying-Solutions-Of-Tanxx?ref=Feed:MaplePrimes:verifying solutions of tan(x)=x:Comments#answer59542</link>
      <itunes:summary>&lt;p&gt;thanks for the reply. i tried changing&lt;/p&gt;
&lt;p&gt;evalb(simplify(tan(this_soln)-this_soln)=0);&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;verify(tan(this_soln),this_soln,float);&lt;/p&gt;
&lt;p&gt;and it came up with an error&lt;/p&gt;
&lt;p&gt;i also tried changing it to&lt;/p&gt;
&lt;p&gt;evalb(fnormal(simplify(tan(this_soln)-this_soln))=0);&lt;/p&gt;
&lt;p&gt;and this gave the first couple as true but the rest remained false.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;thanks for the reply. i tried changing&lt;/p&gt;
&lt;p&gt;evalb(simplify(tan(this_soln)-this_soln)=0);&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;verify(tan(this_soln),this_soln,float);&lt;/p&gt;
&lt;p&gt;and it came up with an error&lt;/p&gt;
&lt;p&gt;i also tried changing it to&lt;/p&gt;
&lt;p&gt;evalb(fnormal(simplify(tan(this_soln)-this_soln))=0);&lt;/p&gt;
&lt;p&gt;and this gave the first couple as true but the rest remained false.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>59542</guid>
      <pubDate>Sat, 30 Jan 2010 19:34:27 Z</pubDate>
      <itunes:author>latentcorpse</itunes:author>
      <author>latentcorpse</author>
    </item>
    <item>
      <title>thanks. that works for me as</title>
      <link>http://www.mapleprimes.com/questions/35850-Verifying-Solutions-Of-Tanxx?ref=Feed:MaplePrimes:verifying solutions of tan(x)=x:Comments#answer59545</link>
      <itunes:summary>&lt;p&gt;thanks. that works for me as well.&lt;/p&gt;
&lt;p&gt;i am confused as to what a ulps is. i looked it up, it units in last place. so this means that if the tan(this_soln) and this_soln are within a given tolerance (in this case 100 ulps) verify will come back true.&lt;/p&gt;
&lt;p&gt;but what is the value of ulps? what is the last place?&lt;/p&gt;
&lt;p&gt;take for example the 1st soln 4.493409458.&lt;/p&gt;
&lt;p&gt;the last place is 8x0.000000001&lt;br /&gt;
&lt;br /&gt;
so would 100 ulps = 100 x 0.000000001 = 0.0000001&lt;/p&gt;
&lt;p&gt;and then if the two numbers are within 0.0000001 of each other verify will come back true?&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;thanks. that works for me as well.&lt;/p&gt;
&lt;p&gt;i am confused as to what a ulps is. i looked it up, it units in last place. so this means that if the tan(this_soln) and this_soln are within a given tolerance (in this case 100 ulps) verify will come back true.&lt;/p&gt;
&lt;p&gt;but what is the value of ulps? what is the last place?&lt;/p&gt;
&lt;p&gt;take for example the 1st soln 4.493409458.&lt;/p&gt;
&lt;p&gt;the last place is 8x0.000000001&lt;br /&gt;
&lt;br /&gt;
so would 100 ulps = 100 x 0.000000001 = 0.0000001&lt;/p&gt;
&lt;p&gt;and then if the two numbers are within 0.0000001 of each other verify will come back true?&lt;/p&gt;</description>
      <guid>59545</guid>
      <pubDate>Sat, 30 Jan 2010 23:49:57 Z</pubDate>
      <itunes:author>latentcorpse</itunes:author>
      <author>latentcorpse</author>
    </item>
    <item>
      <title>what would be the reason for</title>
      <link>http://www.mapleprimes.com/questions/35850-Verifying-Solutions-Of-Tanxx?ref=Feed:MaplePrimes:verifying solutions of tan(x)=x:Comments#answer59547</link>
      <itunes:summary>&lt;p&gt;what would be the reason for Maple giving us very small answers for tan(x)-x and not exactly zero? is it just because tan has to round the answer off?&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;what would be the reason for Maple giving us very small answers for tan(x)-x and not exactly zero? is it just because tan has to round the answer off?&lt;/p&gt;</description>
      <guid>59547</guid>
      <pubDate>Sun, 31 Jan 2010 01:35:04 Z</pubDate>
      <itunes:author>latentcorpse</itunes:author>
      <author>latentcorpse</author>
    </item>
    <item>
      <title>i'm a bit confused.
do you</title>
      <link>http://www.mapleprimes.com/questions/35850-Verifying-Solutions-Of-Tanxx?ref=Feed:MaplePrimes:verifying solutions of tan(x)=x:Comments#answer59549</link>
      <itunes:summary>&lt;p&gt;i'm a bit confused.&lt;/p&gt;
&lt;p&gt;do you mean that because we are working in floating point, maple rounds these answers off?&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;i'm a bit confused.&lt;/p&gt;
&lt;p&gt;do you mean that because we are working in floating point, maple rounds these answers off?&lt;/p&gt;</description>
      <guid>59549</guid>
      <pubDate>Sun, 31 Jan 2010 03:06:13 Z</pubDate>
      <itunes:author>latentcorpse</itunes:author>
      <author>latentcorpse</author>
    </item>
    <item>
      <title>played with it</title>
      <link>http://www.mapleprimes.com/questions/35850-Verifying-Solutions-Of-Tanxx?ref=Feed:MaplePrimes:verifying solutions of tan(x)=x:Comments#answer59552</link>
      <itunes:summary>&lt;pre&gt;
I played with it (no, not with the mathematical part, just with the
Numerics, even if the Math would be more interesting - but too hard
for me (have not found Schanuel's conjecture for trigonometrics, I
guess that might be a way).

Since sin(x)/cos(x) = tan(x) is better to solve sin(x) = cos(x)*x and
using asympotics a choice is x = n*Pi + 1/2*Pi - epsilon, n an integer.

&amp;nbsp; sin(x) - cos(x)*x:
&amp;nbsp; 'eval(%, x=n*Pi + Pi/2 - epsilon)';
&amp;nbsp; expand(%): 
&amp;nbsp; simplify(%) assuming n::posint:
&amp;nbsp; collect(%, sin):
&amp;nbsp; EQ:=simplify(%, size);

&amp;nbsp;&amp;nbsp;&amp;nbsp; EQ := (-1)^(1+n)*(((n+1/2)*Pi-epsilon)*sin(epsilon)-cos(epsilon))

The asymptotic series for solve(EQ, epsilon) is 1/(Pi*n) +- ... and
this way even for high values one finds a solution:

&amp;nbsp; nTst:=1+'`^`(10,10)'; # even or odd does not matter

&amp;nbsp; eval(EQ, n=nTst);
&amp;nbsp; epsilon0:=fsolve(%, epsilon=1/Pi/nTst, fulldigits);
&amp;nbsp; #epsilon0:= convert(%, rational);

Check it (I work with Digits = 14):

&amp;nbsp; eval(sin(x) - cos(x)*x, x=nTst*Pi + Pi/2 - epsilon0); evalf(%);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.


Doing the same with 'RootOf' instead of 'fsolve' gives a formal solution,
which (of course) Maple agrees to be correct:

&amp;nbsp; eval(EQ, n=nTst);
&amp;nbsp; epsilon0:=RootOf(%, epsilon);
&amp;nbsp; eval(sin(x) - cos(x)*x, x=nTst*Pi + Pi/2 - epsilon0); simplify(%);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0

and if one wants to know it, then

&amp;nbsp; 'evalf[100](epsilon0)': '%'=%;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -18
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; evalf[100](epsilon0) = 0.3183 ... 983 10


To compute or verify it directly for tan(x)=x is not my thing ...

&lt;/pre&gt;</itunes:summary>
      <description>&lt;pre&gt;
I played with it (no, not with the mathematical part, just with the
Numerics, even if the Math would be more interesting - but too hard
for me (have not found Schanuel's conjecture for trigonometrics, I
guess that might be a way).

Since sin(x)/cos(x) = tan(x) is better to solve sin(x) = cos(x)*x and
using asympotics a choice is x = n*Pi + 1/2*Pi - epsilon, n an integer.

&amp;nbsp; sin(x) - cos(x)*x:
&amp;nbsp; 'eval(%, x=n*Pi + Pi/2 - epsilon)';
&amp;nbsp; expand(%): 
&amp;nbsp; simplify(%) assuming n::posint:
&amp;nbsp; collect(%, sin):
&amp;nbsp; EQ:=simplify(%, size);

&amp;nbsp;&amp;nbsp;&amp;nbsp; EQ := (-1)^(1+n)*(((n+1/2)*Pi-epsilon)*sin(epsilon)-cos(epsilon))

The asymptotic series for solve(EQ, epsilon) is 1/(Pi*n) +- ... and
this way even for high values one finds a solution:

&amp;nbsp; nTst:=1+'`^`(10,10)'; # even or odd does not matter

&amp;nbsp; eval(EQ, n=nTst);
&amp;nbsp; epsilon0:=fsolve(%, epsilon=1/Pi/nTst, fulldigits);
&amp;nbsp; #epsilon0:= convert(%, rational);

Check it (I work with Digits = 14):

&amp;nbsp; eval(sin(x) - cos(x)*x, x=nTst*Pi + Pi/2 - epsilon0); evalf(%);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.


Doing the same with 'RootOf' instead of 'fsolve' gives a formal solution,
which (of course) Maple agrees to be correct:

&amp;nbsp; eval(EQ, n=nTst);
&amp;nbsp; epsilon0:=RootOf(%, epsilon);
&amp;nbsp; eval(sin(x) - cos(x)*x, x=nTst*Pi + Pi/2 - epsilon0); simplify(%);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0

and if one wants to know it, then

&amp;nbsp; 'evalf[100](epsilon0)': '%'=%;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -18
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; evalf[100](epsilon0) = 0.3183 ... 983 10


To compute or verify it directly for tan(x)=x is not my thing ...

&lt;/pre&gt;</description>
      <guid>59552</guid>
      <pubDate>Mon, 01 Feb 2010 02:40:50 Z</pubDate>
      <itunes:author>Axel Vogt</itunes:author>
      <author>Axel Vogt</author>
    </item>
  </channel>
</rss>