<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nc.ut.ee/index.php?action=history&amp;feed=atom&amp;title=Solve_Quadratic_Equation</id>
	<title>Solve Quadratic Equation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nc.ut.ee/index.php?action=history&amp;feed=atom&amp;title=Solve_Quadratic_Equation"/>
	<link rel="alternate" type="text/html" href="https://wiki.nc.ut.ee/index.php?title=Solve_Quadratic_Equation&amp;action=history"/>
	<updated>2026-10-30T14:05:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.nc.ut.ee/index.php?title=Solve_Quadratic_Equation&amp;diff=2166&amp;oldid=prev</id>
		<title>Pavel at 10:05, 14 July 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.nc.ut.ee/index.php?title=Solve_Quadratic_Equation&amp;diff=2166&amp;oldid=prev"/>
		<updated>2026-07-14T10:05:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:05, 14 July 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    print(&#039;The solution are {0} and {1}&#039;.format(sol1,sol2))&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    print(&#039;The solution are {0} and {1}&#039;.format(sol1,sol2))&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;if d ==0 :&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;if d ==&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;0 :&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    sol1 = (-b)/(2*a)&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    sol1 = (-b)/(2*a)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    print(&#039;The solution has the only root {0}&#039;.format(sol1))&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    print(&#039;The solution has the only root {0}&#039;.format(sol1))&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pavel</name></author>
	</entry>
	<entry>
		<id>https://wiki.nc.ut.ee/index.php?title=Solve_Quadratic_Equation&amp;diff=2165&amp;oldid=prev</id>
		<title>Pavel: Created page with &quot;&lt;pre&gt;  # Solve the quadratic equation ax**2 + bx + c = 0  # import complex math module import math  #ax2 + bx + c = 0, where #a, b and c are real numbers and #a ≠ 0  #the di...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nc.ut.ee/index.php?title=Solve_Quadratic_Equation&amp;diff=2165&amp;oldid=prev"/>
		<updated>2026-07-14T10:04:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt;  # Solve the quadratic equation ax**2 + bx + c = 0  # import complex math module import math  #ax2 + bx + c = 0, where #a, b and c are real numbers and #a ≠ 0  #the di...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Solve the quadratic equation ax**2 + bx + c = 0&lt;br /&gt;
&lt;br /&gt;
# import complex math module&lt;br /&gt;
import math&lt;br /&gt;
&lt;br /&gt;
#ax2 + bx + c = 0, where&lt;br /&gt;
#a, b and c are real numbers and&lt;br /&gt;
#a ≠ 0&lt;br /&gt;
&lt;br /&gt;
#the discriminant&lt;br /&gt;
#d = (b**2) - (4*a*c)&lt;br /&gt;
&lt;br /&gt;
#(-b ± (d) ** 0.5) / (2 * a)&lt;br /&gt;
&lt;br /&gt;
print (&amp;#039;Solve the quadratic equation ax**2 + bx + c = 0&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
a = float(input(&amp;#039;Enter a: &amp;#039;))&lt;br /&gt;
b = float(input(&amp;#039;Enter b: &amp;#039;))&lt;br /&gt;
c = float(input(&amp;#039;Enter c: &amp;#039;))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# calculate the discriminant&lt;br /&gt;
d = (b**2) - (4*a*c)&lt;br /&gt;
#где d = b2 - 4ac — дискриминант многочлена ax2 + bx + c.&lt;br /&gt;
#Если D &amp;gt; 0, то уравнение имеет два различных вещественных корня.&lt;br /&gt;
#например при a = 1, b = 1 и c = –6, корни уравнения будут -3 и 2&lt;br /&gt;
#Если D = 0, то оба корня равны. Например: a = 1, b = −6, c = 9;&lt;br /&gt;
#Если D &amp;lt; 0, то решений нет. Например: a = 1, b = 1, c = 6;&lt;br /&gt;
&lt;br /&gt;
if d &amp;gt; 0 :&lt;br /&gt;
    # find two solutions&lt;br /&gt;
    sol1 = (-b-math.sqrt(d))/(2*a)&lt;br /&gt;
    sol2 = (-b+math.sqrt(d))/(2*a)&lt;br /&gt;
    print(&amp;#039;The solution are {0} and {1}&amp;#039;.format(sol1,sol2))&lt;br /&gt;
&lt;br /&gt;
if d ==0 :&lt;br /&gt;
    sol1 = (-b)/(2*a)&lt;br /&gt;
    print(&amp;#039;The solution has the only root {0}&amp;#039;.format(sol1))&lt;br /&gt;
&lt;br /&gt;
if d &amp;lt; 0 :&lt;br /&gt;
    print(&amp;#039;There are no solutions!&amp;#039;)&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pavel</name></author>
	</entry>
</feed>