<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl">
	<id>http://brain.fuw.edu.pl/edu/index.php?action=history&amp;feed=atom&amp;title=TI%2FSkrypty_z_zaj%C4%99%C4%87%2Fk3</id>
	<title>TI/Skrypty z zajęć/k3 - Historia wersji</title>
	<link rel="self" type="application/atom+xml" href="http://brain.fuw.edu.pl/edu/index.php?action=history&amp;feed=atom&amp;title=TI%2FSkrypty_z_zaj%C4%99%C4%87%2Fk3"/>
	<link rel="alternate" type="text/html" href="http://brain.fuw.edu.pl/edu/index.php?title=TI/Skrypty_z_zaj%C4%99%C4%87/k3&amp;action=history"/>
	<updated>2026-04-22T23:20:08Z</updated>
	<subtitle>Historia wersji tej strony wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>http://brain.fuw.edu.pl/edu/index.php?title=TI/Skrypty_z_zaj%C4%99%C4%87/k3&amp;diff=8341&amp;oldid=prev</id>
		<title>Tgub: Utworzono nową stronę &quot;&lt;source lang=&quot;python&quot;&gt; # -*- coding: utf-8 -*- &quot;&quot;&quot; Created on Wed May  6 10:53:01 2020  @author: Tomek &quot;&quot;&quot;  class wektor2D():     def __init__(self, x ,y):         self....&quot;</title>
		<link rel="alternate" type="text/html" href="http://brain.fuw.edu.pl/edu/index.php?title=TI/Skrypty_z_zaj%C4%99%C4%87/k3&amp;diff=8341&amp;oldid=prev"/>
		<updated>2020-05-06T15:00:09Z</updated>

		<summary type="html">&lt;p&gt;Utworzono nową stronę &amp;quot;&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; # -*- coding: utf-8 -*- &amp;quot;&amp;quot;&amp;quot; Created on Wed May  6 10:53:01 2020  @author: Tomek &amp;quot;&amp;quot;&amp;quot;  class wektor2D():     def __init__(self, x ,y):         self....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nowa strona&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# -*- coding: utf-8 -*-&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
Created on Wed May  6 10:53:01 2020&lt;br /&gt;
&lt;br /&gt;
@author: Tomek&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
class wektor2D():&lt;br /&gt;
    def __init__(self, x ,y):&lt;br /&gt;
        self.__x = int(x)&lt;br /&gt;
        self.__y = int(y)&lt;br /&gt;
        &lt;br /&gt;
    def __get_x(self):&lt;br /&gt;
        return self.__x&lt;br /&gt;
&lt;br /&gt;
    def __set_x(self,x):&lt;br /&gt;
        self.__x = int(x)&lt;br /&gt;
                &lt;br /&gt;
    x = property(__get_x, __set_x)&lt;br /&gt;
    &lt;br /&gt;
    def __get_y(self):&lt;br /&gt;
        return self.__y&lt;br /&gt;
    &lt;br /&gt;
    def __set_y(self,y):&lt;br /&gt;
        self.__y = int(y)&lt;br /&gt;
                &lt;br /&gt;
    y = property(__get_y, __set_y)&lt;br /&gt;
    &lt;br /&gt;
#    @property&lt;br /&gt;
#    def x(self):&lt;br /&gt;
#        return self.__x&lt;br /&gt;
    &lt;br /&gt;
    def __str__(self):&lt;br /&gt;
        return 'wektor 2D: ' + str(self.__x) + ', ' + str(self.__y)&lt;br /&gt;
    &lt;br /&gt;
    def __repr__(self):&lt;br /&gt;
        return self.__str__()&lt;br /&gt;
    &lt;br /&gt;
    def __dlugosc(self):&lt;br /&gt;
        return ((self.__x)**2 + (self.__y)**2)**(0.5)&lt;br /&gt;
    &lt;br /&gt;
    def __abs__(self):&lt;br /&gt;
        return self.__dlugosc()&lt;br /&gt;
    &lt;br /&gt;
    def kwadratowa(self, x):&lt;br /&gt;
        return self.__x*x&lt;br /&gt;
    &lt;br /&gt;
    def mnozenie(self,mnoznik):&lt;br /&gt;
        self.__x = int(mnoznik) * self.__x&lt;br /&gt;
        self.__y = int(mnoznik) * self.__y&lt;br /&gt;
        &lt;br /&gt;
a = wektor2D(3,4)&lt;br /&gt;
print(a)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tgub</name></author>
		
	</entry>
</feed>