Aynan ba misli istifodai funksiyahoi standarti yo zerbarnomahoi muqarrari, hangomi tartibdihii barnomaho bazan lozim meoyad, ki qimati yak ifoda (arifmetiki, satri va gayra) baroi qimathoi gunoguni buzurgihoi dar tarkibashbuda yakchand marotiba hisob karda shavad. Dar chunin mavridho, bo maqsadi sarfai hajmi khotirai kompyuter va sodagardonii ravandi barnomarezi, in guna ifodaro az ruyi metodi sokhtani funksiyahoi standarti dar ibtidoi barnoma tasvir menamoyand va ba on, az joyhoi zarurii barnoma, hamchun ba funksiya murojiat mekunand. Azbaski murojiatkuni ba chunin ifodaho, tavassuti nomashon (hamchun funksiya), az dokhili yagon operator amali megardad va az in ru onho doroi ham khosiyathoi operatoru ham funksiya meboshand, binobar in ba onho operator-funksiya nom guzoshtaand. Operator-funksiyahoro dar radifi funksiyahoi standarti bazan funksiyahoi gayristandarti niz menomand.
Namudi umumii operator-funksiya ^e£ Gpa(u)=v ast. Dar in jo ^e£ Gp (reypyyup Gipsyop – muayyankunii funksiya) kalimai khidmati, a – nomi funksiya, u – ruykhati intikhobhoi (parametrhoi) rasmi (formali), v – ifodaest, ki dar on bo parametrhoi rasmi amalho ijro karda meshavand. Hangomi murojiatkuni ba operator-funksiya parametrhoi rasmi bo parametrhoi asli ivaz karda meshavand.
Masalan, biguzor dar barnoma hisobkunii qimati ifodai 2=kh2+u2 baroi qimathoi gunoguni kh va u yakchand marotiba talab karda shuda boshad. Bo istifoda az imkoniyathoi Beysik ifodai mazkurro dar ibtidoi barnoma bo yorii operator-funksiyai ^eG Gpg(kh,u)=khl2+ul2 tasvir menamoem. Agar dar barnoma operatori T=2*so»(4.5)- Gpg(2,3)+3*Gpg(1,1) vokhurad, on goh in guvohi on ast, ki murojiatkuni ba funksiya du marotiba amali gashtaast. Dar in jo 2 – nomi funksiya, kh va u – parametrhoi rasmiand, ki hangomi murojiat onho bo adadhoi mushakhkhas ivaz karda shudaand. Dar asl operatori ovardashuda bo operatori T=2*soz(4.5)-(2l2+3l2)+3*(1l2+1l2) barobarquvva ast.
PMisoli 2: Bo istifoda az operator-funksiya qimati ifodai 1Nakh2+I1kh+1Ns , .
■- : . dar mavridi kh=1, a=2, =3, s=4 budan efta
Osakh* + kh + s)
shavad. Dar in jo ^kh = e – e ast.
e + e –kh
H=1:A=2:V=3:S=4
Ee£ Gp1(H)=(Ekhr(kh)-Ekhr(-kh))/(Ekhr(kh)+Ekhr(-kh)) P=A*HL2:E=V*H
G=p+e+S
¥=(Gp1(B)+Gp1(E)+Gp1(S))/Gp1(G)
Rpp1“¥=”;¥
11ps1
PMisoli 3: Barnomai hisobkunii , va bo istifoda az zerbarnoma, baroi qimati mushakhkhasi kh^0.
Ket Istifodai zerbar- noma
1pri1X
¥=15
Sovi 5
A=8:¥=25
Sovi 5
V=8:¥=18
So8i 5
Rgt1
“A=”;A,“V=”;5*V,“S=”;8/H 11111
5: Ket Zerbarnoma
8=0
Gog K=2 To ¥ 8=8+^od(H)^od(K) №kh1 K
Ke1igp
PMisoli 4: Barnomai yoftani kalontarin taqsimkunandai umumii juzhoi massivi adadhoi naturalii A[1:p]
RgpP ”Miqdori juzhoi massivro | 10:Ket Zerbarnoma |
dokhil kuned” | 40:P’ H=¥ TIep 20 |
1pri1 N | 1£ H>¥ TIep 30 |
^1t A(K) | ¥=¥-H |
RgpP “Juzhoi massivro dokhil | So1o 40 |
kuned” | 30:H=H-¥ |
Gog1=1ToN | So1o 40 |
1pri1 A(1)
N0x1 I H=A(1) Gog1=2 To N ¥=A(1) So8i 10 N0x1 I Rgsh1 “KTU=”;H Eps1 |
20:Ke1igp |
Savolho:
- Zerbarnoma az barnomai asosy chy farq dorad?
- Operatori murojiatkuni ba zerbarnoma kadom ast?
- Vazifai operatori Ke1igp az chi iborat ast?
- Oyo istifodai zerbarnoma halli masalaro behtar megardonad? CHaro?
- YAk barnoma chand zerbarnomaro dar bar girifta metavonad?
- Operator-funksiya chi tavr tasvir karda meshavad?
- Parametrhoi asli az rasmi chi farq dorand?
6 Suporish:
- Tarzi kori operatorhoi Oozi va Ke1igp-ro bo yagon misol manidod kuned.
- Barnomai hisobkunii qimati ifodahoi va
t!+p!-ro sozed.
- Bo istifoda az zerbarnoma qimati ifodai
p!
– ■ ■ =————— ro hisob kuned.
t! (p — t)!