<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.formulasearchengine.com/index.php?action=history&amp;feed=atom&amp;title=Bitwise_operation</id>
	<title>Bitwise operation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.formulasearchengine.com/index.php?action=history&amp;feed=atom&amp;title=Bitwise_operation"/>
	<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/index.php?title=Bitwise_operation&amp;action=history"/>
	<updated>2026-05-06T17:46:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0-wmf.28</generator>
	<entry>
		<id>https://en.formulasearchengine.com/index.php?title=Bitwise_operation&amp;diff=287530&amp;oldid=prev</id>
		<title>en&gt;Episcophagus: /* OR */ &quot;the desired value&quot; =&gt; 1, you can not use OR to set a bit that is 1 to 0, only 0 to 1.</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/index.php?title=Bitwise_operation&amp;diff=287530&amp;oldid=prev"/>
		<updated>2014-10-31T11:24:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;OR: &lt;/span&gt; &amp;quot;the desired value&amp;quot; =&amp;gt; 1, you can not use OR to set a bit that is 1 to 0, only 0 to 1.&lt;/p&gt;
&lt;a href=&quot;https://en.formulasearchengine.com/index.php?title=Bitwise_operation&amp;amp;diff=287530&amp;amp;oldid=287529&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>en&gt;Episcophagus</name></author>
	</entry>
	<entry>
		<id>https://en.formulasearchengine.com/index.php?title=Bitwise_operation&amp;diff=287529&amp;oldid=prev</id>
		<title>en&gt;Dsimic: Undid revision 596905565 by 89.120.104.138 (talk) Sorry, this edit made the example incorrect &amp;ndash; it is different, but that way shows beter the sign bit shifted in on the left</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/index.php?title=Bitwise_operation&amp;diff=287529&amp;oldid=prev"/>
		<updated>2014-02-25T05:53:55Z</updated>

		<summary type="html">&lt;p&gt;Undid revision 596905565 by &lt;a href=&quot;/wiki/Special:Contributions/89.120.104.138&quot; title=&quot;Special:Contributions/89.120.104.138&quot;&gt;89.120.104.138&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:89.120.104.138&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:89.120.104.138 (page does not exist)&quot;&gt;talk&lt;/a&gt;) Sorry, this edit made the example incorrect – it is different, but that way shows beter the sign bit shifted in on the left&lt;/p&gt;
&lt;a href=&quot;https://en.formulasearchengine.com/index.php?title=Bitwise_operation&amp;amp;diff=287529&amp;amp;oldid=3510&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>en&gt;Dsimic</name></author>
	</entry>
	<entry>
		<id>https://en.formulasearchengine.com/index.php?title=Bitwise_operation&amp;diff=3510&amp;oldid=prev</id>
		<title>en&gt;Dsimic: /* Mathematical equivalents */ Formatting improvement</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/index.php?title=Bitwise_operation&amp;diff=3510&amp;oldid=prev"/>
		<updated>2014-01-30T02:52:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Mathematical equivalents: &lt;/span&gt; Formatting improvement&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In [[linear algebra]], a &amp;#039;&amp;#039;&amp;#039;Hilbert matrix&amp;#039;&amp;#039;&amp;#039;, introduced by {{harvs|txt|last=Hilbert|year=1894|authorlink=David Hilbert}},  is a [[square matrix]] with entries being the [[unit fraction]]s&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; H_{ij} = \frac{1}{i+j-1}. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, this is the 5 &amp;amp;times; 5 Hilbert matrix:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;H = \begin{bmatrix} &lt;br /&gt;
1 &amp;amp; \frac{1}{2} &amp;amp; \frac{1}{3} &amp;amp; \frac{1}{4} &amp;amp; \frac{1}{5} \\[4pt]&lt;br /&gt;
\frac{1}{2} &amp;amp; \frac{1}{3} &amp;amp; \frac{1}{4} &amp;amp; \frac{1}{5} &amp;amp; \frac{1}{6} \\[4pt]&lt;br /&gt;
\frac{1}{3} &amp;amp; \frac{1}{4} &amp;amp; \frac{1}{5} &amp;amp; \frac{1}{6} &amp;amp; \frac{1}{7} \\[4pt]&lt;br /&gt;
\frac{1}{4} &amp;amp; \frac{1}{5} &amp;amp; \frac{1}{6} &amp;amp; \frac{1}{7} &amp;amp; \frac{1}{8} \\[4pt]&lt;br /&gt;
\frac{1}{5} &amp;amp; \frac{1}{6} &amp;amp; \frac{1}{7} &amp;amp; \frac{1}{8} &amp;amp; \frac{1}{9} \end{bmatrix}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Hilbert matrix can be regarded as derived from the integral&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; H_{ij} = \int_{0}^{1} x^{i+j} \, dx, &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
that is, as a [[Gramian matrix]] for powers of &amp;#039;&amp;#039;x&amp;#039;&amp;#039;. It arises in the [[least squares]] approximation of arbitrary functions by [[polynomial]]s.&lt;br /&gt;
&lt;br /&gt;
The Hilbert matrices are canonical examples of [[ill-conditioned]] matrices, making them notoriously difficult to use in numerical computation.  For example, the 2-norm [[condition number]] of the matrix above is about 4.8 · 10&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Historical note==&lt;br /&gt;
&lt;br /&gt;
{{harvtxt|Hilbert|1894}} introduced the Hilbert matrix to  study the following question in [[approximation theory]]: &amp;quot;Assume that {{nowrap|&amp;#039;&amp;#039;I&amp;#039;&amp;#039; {{=}} [&amp;#039;&amp;#039;a&amp;#039;&amp;#039;, &amp;#039;&amp;#039;b&amp;#039;&amp;#039;]}} is a real interval.  Is it then possible to find a non-zero polynomial &amp;#039;&amp;#039;P&amp;#039;&amp;#039; with integral coefficients, such that the integral &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\int_{a}^b P(x)^2 dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
is smaller than any given bound &amp;#039;&amp;#039;&amp;amp;epsilon;&amp;#039;&amp;#039;&amp;amp;nbsp;&amp;gt; 0, taken arbitrarily small?&amp;quot; To answer this question, Hilbert derives an exact formula for the [[determinant]] of the Hilbert matrices and investigates their asymptotics. He concludes that the answer to his question is positive if the length {{nowrap|&amp;#039;&amp;#039;b&amp;#039;&amp;#039; &amp;amp;minus; &amp;#039;&amp;#039;a&amp;#039;&amp;#039;}} of the interval is smaller than&amp;amp;nbsp;4.&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
&lt;br /&gt;
The Hilbert matrix is [[symmetric matrix|symmetric]] and [[positive-definite matrix|positive definite]]. The Hilbert matrix is also [[totally positive]] (meaning the determinant of every [[submatrix]] is positive).  &lt;br /&gt;
&lt;br /&gt;
The Hilbert matrix is an example of a [[Hankel matrix]].&lt;br /&gt;
&lt;br /&gt;
The determinant can be expressed in [[closed-form expression|closed form]], as a special case of the [[Cauchy determinant]]. The determinant of the &amp;#039;&amp;#039;n&amp;#039;&amp;#039; &amp;amp;times; &amp;#039;&amp;#039;n&amp;#039;&amp;#039; Hilbert matrix is&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\det(H)={{c_n^{\;4}}\over {c_{2n}}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_n = \prod_{i=1}^{n-1} i^{n-i}=\prod_{i=1}^{n-1} i!.\,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hilbert already mentioned the curious fact that the determinant of the Hilbert matrix is the reciprocal of an integer (see sequence {{OEIS2C|A005249}} in the [[OEIS]]) which also follows from the identity&lt;br /&gt;
: &amp;lt;math&amp;gt;{1 \over \det (H)}={{c_{2n}}\over {c_n^{\;4}}}=n!\cdot \prod_{i=1}^{2n-1} {i \choose [i/2]}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using [[Stirling&amp;#039;s approximation]] of the [[factorial]] one can establish the following asymptotic result:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\det(H)=a_n\, n^{-1/4}(2\pi)^n \,4^{-n^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; converges to the constant &amp;lt;math&amp;gt;e^{1/4} 2^{1/12} A^{ - 3} \approx 0.6450 &amp;lt;/math&amp;gt; as &amp;lt;math&amp;gt;n\rightarrow\infty&amp;lt;/math&amp;gt;, where A is the [[Glaisher-Kinkelin constant]].&lt;br /&gt;
&lt;br /&gt;
The [[matrix inverse|inverse]] of the Hilbert matrix can be expressed in closed form using [[binomial coefficient]]s; its entries are&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(H^{-1})_{ij}=(-1)^{i+j}(i+j-1){n+i-1 \choose n-j}{n+j-1 \choose n-i}{i+j-2 \choose i-1}^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;#039;&amp;#039;n&amp;#039;&amp;#039; is the order of the matrix. It follows that the entries of the inverse matrix are all integer.&lt;br /&gt;
&lt;br /&gt;
The condition number of the &amp;#039;&amp;#039;n&amp;#039;&amp;#039;-by-&amp;#039;&amp;#039;n&amp;#039;&amp;#039; Hilbert matrix grows as &amp;lt;math&amp;gt;O((1+\sqrt{2})^{4n}/\sqrt{n})&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
*{{Citation | last1=Hilbert | first1=David | author1-link=David Hilbert | title=Ein Beitrag zur Theorie des Legendre&amp;#039;schen Polynoms | publisher=Springer Netherlands | doi=10.1007/BF02418278 | jfm=25.0817.02 | year=1894 | journal=[[Acta Mathematica]] | issn=0001-5962 | volume=18 | pages=155–159}}. Reprinted in  {{cite book|first=David|last= Hilbert|title=Collected papers|volume= II|chapter= article 21}}&lt;br /&gt;
* {{cite journal|doi=10.1007/PL00005392|last=Beckermann|first=Bernhard|title=The condition number of real Vandermonde, Krylov and positive definite Hankel matrices|journal= Numerische Mathematik|volume=85|issue=4|pages= 553–577|year= 2000}}&lt;br /&gt;
* {{cite journal|doi=10.2307/2975779|last=Choi|first= M.-D.|title= Tricks or Treats with the Hilbert Matrix|journal=American Mathematical Monthly|volume=90|issue=5|pages=301–312|year= 1983|jstor=2975779}}&lt;br /&gt;
* {{cite journal|last=Todd|first= John|title=The Condition Number of the Finite Segment of the Hilbert Matrix|journal=National Bureau of Standards, Applied Mathematics Series|volume=39|pages= 109–116|year=1954}}&lt;br /&gt;
* {{Cite book|last=Wilf|first=H. S.|title=Finite Sections of Some Classical Inequalities|location= Heidelberg|publisher= Springer|year= 1970|isbn=3-540-04809-X}}&lt;br /&gt;
&lt;br /&gt;
{{Numerical linear algebra}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Numerical linear algebra]]&lt;br /&gt;
[[Category:Approximation theory]]&lt;br /&gt;
[[Category:Matrices]]&lt;br /&gt;
[[Category:Determinants]]&lt;/div&gt;</summary>
		<author><name>en&gt;Dsimic</name></author>
	</entry>
</feed>