% objektove programovani (postaru) % trida 'komplex' ... komplexni cisla a = komplex() b = komplex(5+2i) c = komplex(2,3) d = komplex([1,5]) e = komplex(d) display(e) char(e) a+b c-d e*a b/c abs(a) abgle(b) kompl_sdruz(c) conj(d) set(e,'real',2) set(a,'imag',5) b.re=5 c.im=3 d(1)=3 e(2)=6 a{}-3 s1 = strom('buk',0.85,13,21) s2 = strom('javor',0.02,0.1,0.5) s2 = strom('briza',0.02,0.1,0.5) s3 = strom('briza',0.04,1.5,3.4) char(s1) s1+s3 s2+s3