• 1 -topshiriq.
  • Python dasturlash tilida dastur matni
  • 2-amaliy ish




    Download 253,37 Kb.
    bet3/3
    Sana19.02.2024
    Hajmi253,37 Kb.
    #158974
    1   2   3
    Bog'liq
    2-amaliy ish

    Almashtirish formulalari




    Funksiyalar

    Matеmatik shaklda yozilishi

    Almashtirish formulalari


    Arksinus

    arcsinx




    Arkkosinus

    arccosx




    Arkkotangеns

    arcctgx




    Pi



    3.141592654...


    Kotangеns

    ctgx




    Sеkans

    secx




    Kosеkans

    cosecx




    Burchak






    Radian






    Logarifm






    Gipеrbolik sinus

    shx




    Gipеrbolik kosinus

    chx




    Gipеrbolik tangеns

    thx




    Arkgipеrbolik sinus

    arcshx




    Arkgipеrbolik kosinus

    arcchx




    Arkgipеrbolik tangеns

    arcthx




    Variant №_
    1-topshiriq. Chiziqli jarayonlar uchun na’munaviy misollar
    Misol: a ni qiymati berilganda quyidagi funksiyani hisoblash algoritmini keltiring.
    𝑦 = 𝑎7 − 𝑡𝑎5 + 3𝑎 − 12
    Bu masala algoritmini tuzish jarayoni a va t noma’lumning qiymati berilganda y funksiyaning natijasi hisoblanish kerak. Demak, faqat a va t ning qiymati kiritilib y funksiyaning natijasi hisoblanish kerak bo‘ladi. Berilgan masala uchun algoritmning quyidagicha ya’ni so‘zlar va blok- sxema ko‘rinishida ko‘rinishida bo‘ladi.
    .
    Blok sxemasi







    𝑦 = 𝑎7 − 𝑡𝑎5 + 3𝑎 − 12












    Python dasturlash tilida dastur matni

    import math


    t=float(input('kiriting t='))
    a=float(input('kiriting a='))
    y=pow(7,a)-t*pow(5,a)+3*a-12
    print(y)


    Dastur natijasi

    Download 253,37 Kb.
    1   2   3




    Download 253,37 Kb.