This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% X je manzelem Y | |
manzel(denis, rachel). | |
manzel(jan, petra). | |
manzel(libor, sona). | |
manzel(lukas, jana). | |
manzel(ota, bozena). | |
manzel(petr, lenka). | |
manzel(venceslav, hilda). | |
%% X je matkou Y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xydata := [[0,0],[1,9],[4,3],[6,10],[8,5],[9,3]]: | |
splajn := Spline(xydata, v): | |
polyn := PolynomialInterpolation(xydata, v): | |
Psplajn := plot(splajn, v=0..9, color=blue): | |
Ppolyn := plot(polyn, v=0..9): | |
Pxydata := pointplot(xydata): | |
plots[display]([Psplajn, Ppolyn, Pxydata], axes=framed); | |
bsplajn := BSplineCurve(xydata, v): | |
Pbsplajn := plot(bsplajn, v=0..9, color=cyan): | |
plots[display]([Psplajn, Ppolyn, Pbsplajn, Pxydata], axes=framed); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;the easy way - pomoci co-dolist ktere obsahuje funkci barrier | |
(defvar c1 (make-array '(3 3) :initial-contents '((1 0 0) | |
(0 1 0) | |
(0 0 1)))) | |
(defvar c2 (make-array '(3 3) :initial-contents '((2 0 0) | |
(0 1 0) | |
(0 0 1)))) | |
(defvar c3 (make-array '(3 3) :initial-contents '((3 0 0) | |
(0 1 0) | |
(0 0 1)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with(plots); | |
with(CurveFitting); | |
spl1 := PolynomialInterpolation([0, 1, 2, 3, 4, 5, 6, 7], [0, 1, 2, 2, 1, 0, 1, 2], t); | |
spl2 := PolynomialInterpolation([0, 1, 2, 3, 4, 5, 6, 7], [1, 0, 1, 4, 5, 4, 3, 4], t); | |
plot([spl1, spl2, t=0..7]); | |
xx := [0, 3, 3, 0]: yy := [4, 9, -5, 0]; | |
n := nops(xx) - 1; | |
Points := plot([seq([xx[j], yy[j]], j=1..n+1)], style=point); | |
bez := x->evalm(sum(binomial(n, i)*x^i*(1-x)^(n-i)*[xx[i+1], yy[i+1]], i=0..n)); | |
Pbez := plot([bez(x)[1], bez(x)[2], x=0..1]): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PilotMissionLog | |
attr_accessor :name, | |
:score, | |
:state, | |
:enemy_aircraft_kill, | |
:enemy_static_aircraft_kill, | |
:enemy_tank_kill, | |
:enemy_car_kill, | |
:enemy_artillery_kill, | |
:enemy_AAA_kill, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mladsi kuchynka chtel na sebe vzit lodenici - pujcovani od kvetna do zari, nepropujcili jsme mu zivnost, lode by nam vydelavaly 50%, predbezne. | |
budova nebude, | |
Karel se dotaze kuchynky, chceme mit 4 obedy a vstup zdarma. Kuchynka nabizi 3 obedy. | |
Karel zjisti zneni smlouvy naseho pojisteni. | |
Oslovil nas hradek, 31 kvetna, ukazka cinnosti, udelame, zajisti vasek. | |
1 cervna, chteji veze. udelame, zajisti ?. | |
29 kvetna, odpoledne, postavit discipliny bez lidi, za skolou, zajisti? | |
uklid prehrady, 25 dubna. Chteji clun, my bysme nabidly lode. Domluva zadna. | |
CEZ s nami zitra bude uzavirat smlouvu na zhruba 50 000. | |
VZP ma akci 500 pod 26, pojistenci VZP muzou prispet materialem do zachranarum. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 3. cviceni | |
; UKOL (20): Problem stabilnich (nebo spise ne nestabilnich) manzelstvi | |
; N procesu muzu a N procesu zen | |
; kazdy muz hodnoti kazdou zenu cislem od 1 do N, vetsi cislo je lepsi | |
; hodnoceni | |
; kazda zena hodnoti kazdeho muze cislem od 1 do N, vetsi cislo je | |
; lepsi hodnoceni | |
; parovani (pary muzu a zen 1:1) je stabilni, kdyz pro muze m1, m2 a | |
; jejich protejsky z1, z2 zaroven plati: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 3. cviceni | |
; 5.UKOL (15b): Problem stabilnich (nebo spise ne nestabilnich) manzelstvi | |
; N procesu muzu a N procesu zen | |
; kazdy muz hodnoti kazdou zenu cislem od 1 do N, vetsi cislo je lepsi | |
; hodnoceni | |
; kazda zena hodnoti kazdeho muze cislem od 1 do N, vetsi cislo je | |
; lepsi hodnoceni | |
; parovani (pary muzu a zen 1:1) je stabilni, kdyz pro muze m1, m2 a | |
; jejich protejsky z1, z2 zaroven plati: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 3. cviceni | |
; UKOL (20): Problem stabilnich (nebo spise ne nestabilnich) manzelstvi | |
; N procesu muzu a N procesu zen | |
; kazdy muz hodnoti kazdou zenu cislem od 1 do N, vetsi cislo je lepsi | |
; hodnoceni | |
; kazda zena hodnoti kazdeho muze cislem od 1 do N, vetsi cislo je | |
; lepsi hodnoceni | |
; parovani (pary muzu a zen 1:1) je stabilni, kdyz pro muze m1, m2 a | |
; jejich protejsky z1, z2 zaroven plati: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span class="in_place_editor_field" id="school_school_year_begins_at_50_in_place_editor">haluz</span><script type="text/javascript"> | |
//<![CDATA[ | |
new Ajax.InPlaceEditor('school_school_year_begins_at_50_in_place_editor', '/admin/nastaveni/set_school_school_year_begins_at', {callback:function(form) { return Form.serialize(form) + '&authenticity_token=' + encodeURIComponent('1befd8297f7ab4ee9bab94ba25804c630693120a') }, cancelText:Storno, clickToEditText:Klikněte pro změnu, loadingText:Pracuji, okText:OK, savingText:Ukládám}) | |
//]]> | |
</script> |