SlideShare une entreprise Scribd logo
1  sur  4
using   System;
using   System.Collections.Generic;
using   System.Linq;
using   System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        public static void Main(string[] args)
        {
            int a, b, d, c,e, k, l;
            Console.WriteLine("F(x) parçalı fonksiyonu için bir denklem seçiniz, seçmek
için başındaki numarayı giriniz ve enter a basınız.");
            Console.WriteLine("1)ax+bn2)ax^2+bn3)ax^2+bx+e");
            int girdi = Convert.ToInt32(Console.ReadLine());
            while (girdi == 1)
            {
                Console.WriteLine("(ax+(b)) şeklinde seçtiğiniz sürekli rastgele değişken
olan f(x) in a ve b değerlerini giriniz:");
                a = Convert.ToInt32(Console.ReadLine());
                b = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("{0}x+({1}) denkleminin geçerli olduğu aralıkları
giriniz (k<=x<=l k ve l değerlerini giriniz):", a, b);
                    k = Convert.ToInt32(Console.ReadLine());
                    l = Convert.ToInt32(Console.ReadLine());
                    if (k < l)
                    {
                        if ((a * l * l / 2) + (b * l) - (a * k * k / 2) - (b * k) == 1)
                        {
                            Console.WriteLine("Denklemi {0}x+{1} olan ve aralığı
{2}<=x<={3} olan fonksiyonumuzun x in diğer değerleri için değeri 0 olacaktır.", a, b, k,
l);
                            Console.WriteLine("f(x)'e bağlı y fonksiyonu için bir denklem
seçiniz, seçmek için başındaki numarayı giriniz ve enter a basınız.");
                            Console.WriteLine("1)dx+cn2)dx^2+cn3) (x+d)^1/2");
                            int girdi2 = Convert.ToInt32(Console.ReadLine());
                            while (girdi2 == 1)
                            {
                                Console.WriteLine("f(x) e bağlı olan y=H(x)=dx+c olan bir
sürekli rastgele değişkenin d ve c değerlerini giriniz:");
                                d = Convert.ToInt32(Console.ReadLine());
                                c = Convert.ToInt32(Console.ReadLine());
                                Console.WriteLine("y=H(x)={0}x+({1})", d, c);
                                Console.WriteLine("F(x)'e bağlı y=H(x) fonksiyonumuzun
kümülatif dağılım fonksiyonu f = ({0}y^2-{1}y+{2})/{3}", a, 2 * a * c + 2 * b * d, a * c *
c - 2 * d * b * c, 2 * d * d);
                                break;
                            }
                            while (girdi2 == 2)
                            {
                                Console.WriteLine("f(x)'e bağlı seçtiğiniz y=H(x)=dx^2+c
sürekli rastgele değişkeninin d ve c değerlerini giriniz:");
                                d = Convert.ToInt32(Console.ReadLine());
                                c = Convert.ToInt32(Console.ReadLine());
                                Console.WriteLine("y=H(x)={0}x^2+({1})", d, c);
Console.WriteLine("F(x) e bağlı y=H(x) fonksiyonumuzun
kümülatif dağılım fonksiyonu f = [({0}y-{1}/{2})+({3}(y-{4}/{5})^1/2)]", a, a * c, 2 * d,
b, c, d);
                                break;
                            }
                            while (girdi2 == 3)
                            {
                                Console.WriteLine("f(x)'e bağlı seçtiğiniz
y=H(x)=(x+d)^1/2 sürekli rastgele değişeninin d değerini giriniz:");
                                d = Convert.ToInt32(Console.ReadLine());
                                Console.WriteLine("y=H(x)=(x+({0}))^1/2", d);
                                Console.WriteLine("F(x)'e bağlı y=H(x)= fonksiyonumuzun
kümülatif dağılım fonksiyonu f=[{0}y^4+{1}y^2+{2}]/2", a, (2 * b) - (2 * d * a), (d * d *
a) - (2 * b * d));
                                break;
                            }
                            break;
                        }
                        else
                            Console.WriteLine("Girdiğiniz aralıklar denklem için geçerli
bir olasılık değeri ifade etmiyor.Değerleri değiştirip tekrar giriniz.");
                    }
                    else
                        Console.WriteLine("k<l olacak şekilde değer giriniz.");
                }

            while (girdi == 2)
            {
                Console.WriteLine("(ax^2+b) şeklinde seçtiğiniz sürekli rastgele değişken
olan f(x) in a ve b değerlerini giriniz:");
                a = Convert.ToInt32(Console.ReadLine());
                b = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("{0}x^2+({1}) denkleminin geçerli olduğu aralıkları
giriniz (k<=x<=l k ve l değerlerini giriniz):", a, b);
                k = Convert.ToInt32(Console.ReadLine());
                l = Convert.ToInt32(Console.ReadLine());
          if(k<l)
          {
              if((a*l*l*l/3)+(b*l)-(a*k*k*k/3)-(b*k)==1)
              {
                Console.WriteLine("Denklemi {0}x^2+{1} olan ve aralığı {2}<=x<={3} olan
fonksiyonumuzun x in diğer değerleri için değeri 0 olacaktır.", a, b, k, l);
                Console.WriteLine("f(x)'e bağlı y fonksiyonu için bir denklem seçiniz,
seçmek için başındaki numarayı giriniz ve enter a basınız.");
                Console.WriteLine("1)dx+cn2)dx^2+cn3)(x+d)^1/2");
                int girdi2 = Convert.ToInt32(Console.ReadLine());
                while (girdi2 == 1)
                {
                    Console.WriteLine("f(x) e bağlı olan y=H(x)=dx+c olan bir sürekli
rastgele değişkenin d ve c değerlerini giriniz:");
                    d = Convert.ToInt32(Console.ReadLine());
                    c = Convert.ToInt32(Console.ReadLine());
                    Console.WriteLine("y(H(x))={0}x+({1})", d, c);
                    Console.WriteLine("F(x) e bağlı y=H(x) fonksiyonumuzun kümülatif
dağılım fonksiyonu f = ({0}y^3-{1}y^2+{2}y-{3})/{4}",
a,3*a*c,(3*a*c*c)+(3*b*d*d),(a*c*c*c)+(3*b*d*d*c),3*d*d*d);
                    break;
                }
while (girdi2 == 2)
                {
                     Console.WriteLine("f(x) e bağlı seçtiğiniz y=H(x)=dx^2+c sürekli
rastgele değişkeninin d ve c değerlerini giriniz:");
                     d = Convert.ToInt32(Console.ReadLine());
                     c = Convert.ToInt32(Console.ReadLine());
                     Console.WriteLine("y(H(x))={0}x^2+({1})", d, c);
                     Console.WriteLine("F(x) e bağlı y=H(x) fonksiyonumuzun kümülatif
dağılım fonksiyonu f =[{0}(y-{1})^3/2]/{2}+{3}(y-{1}/{4})^1/2)", a, c, 3 * d ^ (3 / 2), b,
d);
                     break;
                }
                while (girdi2 == 3)
                {
                     Console.WriteLine("f(x)'e bağlı seçtiğiniz y=H(x)=(x+d)^1/2 sürekli
rastgele değişeninin d değerini giriniz:");
                     d = Convert.ToInt32(Console.ReadLine());
                     Console.WriteLine("y=H(x)=(x+({0}))^1/2", d);
                     Console.WriteLine("F(x)'e bağlı y=H(x)= fonksiyonumuzun kümülatif
dağılım fonksiyonu f=[{0}y^6-{1}y^4-{2}y^2-
{3}]/3",a,3*d*a,(3*d*d*a)+(3*b),(d*d*d*a)+(3*b*d));
                     break;
                }
                break;
            }
              else
                   Console.WriteLine("Girdiğiniz aralıklar denklem için geçerli bir
olasılık değeri ifade etmiyor.Değerleri değiştirip tekrar giriniz.");
          }
                  else
            Console.WriteLine("k<l olacak şekilde değer giriniz.");}
            while (girdi == 3)
            {
                Console.WriteLine("(ax^2+bx+e) şeklinde seçtiğiniz sürekli rastgele
değişken olan f(x) in a,b ve e değerlerini giriniz:");
                a = Convert.ToInt32(Console.ReadLine());
                b = Convert.ToInt32(Console.ReadLine());
                e = Convert.ToInt32(Console.ReadLine());
                Console.WriteLine("{0}x^2+({1})x+({2}) denkleminin geçerli olduğu
aralıkları giriniz (k<=x<=l k ve l değerlerini giriniz):", a, b, e);
                k = Convert.ToInt32(Console.ReadLine());
                l = Convert.ToInt32(Console.ReadLine());
                if (k < l)
                {
                     if((a*l*l*l/3)+(b*l*l/2)+(e*l)-(a*k*k*k/3)-(b*k*k/2)-(e*k)==1)
                     {
                     Console.WriteLine("Denklemi {0}x^2+{1}x+{4} olan ve aralığı
{2}<=x<={3} olan fonksiyonumuzun x in diğer değerleri için değeri 0 olacaktır.", a, b, k,
l, e);
                     Console.WriteLine("f(x)'e bağlı y fonksiyonu için bir denklem seçiniz,
seçmek için başındaki numarayı giriniz ve enter a basınız.");
                     Console.WriteLine("1) dx+cn2) dx^2+cn3) (x+d)^1/2");
                     int girdi2 = Convert.ToInt32(Console.ReadLine());
                     while (girdi2 == 1)
                     {
                         Console.WriteLine("f(x) e bağlı olan y=H(x)=dx+c olan bir sürekli
rastgele değişkenin d ve c değerlerini giriniz:");
                         d = Convert.ToInt32(Console.ReadLine());
c = Convert.ToInt32(Console.ReadLine());
                         Console.WriteLine("y=H(x)=({0})x+({1})", d, c);
                         Console.WriteLine("F(x) e bağlı y=H(x) fonksiyonumuzun kümülatif
dağılım fonksiyonu f = ({0}y^3+{1}y^2+{2}y+{3})/{4}", 2 * a, (3 * b * d) - (6 * c * a), (6
* a * c * c) - (6 * b * d * c) + (6 * e * d * d), (3 * d * b * c * c) - (2 * a * c * c *
c) - (6 * e * c * d * d), 6 * d * d * d);
                         break;
                    }
                    while (girdi2 == 2)
                    {
                         Console.WriteLine("f(x) e bağlı olan y=H(x)=dx^2+c olan bir
sürekli rastgele değişkenin d ve c değererini giriniz:");
                         d = Convert.ToInt32(Console.ReadLine());
                         c = Convert.ToInt32(Console.ReadLine());
                         Console.WriteLine("y=H(x)=({0})x^2+({1})", d, c);
                         Console.WriteLine("F(x)'e bağlı y=H(x) fonksiyonumuzun kümülatif
dağılım fonksiyonu f=[({0}(y-{1})^3/2)/{2}]+[{3}y-{4}/{5}]+[{6}((y-{1})^1/2)/{7}]", a, c,
3 * d ^ (3 / 2), b, b * c, 2 * d, e, d ^ (1 / 2));
                         break;
                    }
                    while (girdi2 == 3)
                    {
                         Console.WriteLine("f(x)'e bağlı seçtiğiniz y=H(x)=(x+d)^1/2
sürekli rastgele değişeninin d değerini giriniz:");
                         d = Convert.ToInt32(Console.ReadLine());
                         Console.WriteLine("y=H(x)=(x+({0}))^1/2", d);
                         Console.WriteLine("F(x)'e bağlı y=H(x)= fonksiyonumuzun kümülatif
dağılım fonksiyonu f=[{0}y^6+{1}y^4+{2}y^2+{3}]/6", 2 * a, (3 * b) - (6 * a * d), (6 * d *
d * a) - (6 * d * b) + (6 * e), (3 * b * d * d) - (6 * e * d) - (2 * d * d * d * a));
                         break;
                    }
                    break;
                }
                      else
                             Console.WriteLine("Girdiğiniz aralıklar denklem için geçerli
bir olasılık değeri ifade etmiyor.Değerleri değiştirip tekrar giriniz.");
                    }
                else
                    Console.WriteLine("k<l olacak şekilde değer giriniz.");
            }
            Console.WriteLine(" DİNLEDİĞİNİZ İÇİN TEŞEKKÜRLER.n         GROUPENDÜSTRİZM");
            Console.ReadLine();
        }
    }
}

Contenu connexe

En vedette

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Sürekli sürekli fonksiyonun program kodlari

  • 1. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { public static void Main(string[] args) { int a, b, d, c,e, k, l; Console.WriteLine("F(x) parçalı fonksiyonu için bir denklem seçiniz, seçmek için başındaki numarayı giriniz ve enter a basınız."); Console.WriteLine("1)ax+bn2)ax^2+bn3)ax^2+bx+e"); int girdi = Convert.ToInt32(Console.ReadLine()); while (girdi == 1) { Console.WriteLine("(ax+(b)) şeklinde seçtiğiniz sürekli rastgele değişken olan f(x) in a ve b değerlerini giriniz:"); a = Convert.ToInt32(Console.ReadLine()); b = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("{0}x+({1}) denkleminin geçerli olduğu aralıkları giriniz (k<=x<=l k ve l değerlerini giriniz):", a, b); k = Convert.ToInt32(Console.ReadLine()); l = Convert.ToInt32(Console.ReadLine()); if (k < l) { if ((a * l * l / 2) + (b * l) - (a * k * k / 2) - (b * k) == 1) { Console.WriteLine("Denklemi {0}x+{1} olan ve aralığı {2}<=x<={3} olan fonksiyonumuzun x in diğer değerleri için değeri 0 olacaktır.", a, b, k, l); Console.WriteLine("f(x)'e bağlı y fonksiyonu için bir denklem seçiniz, seçmek için başındaki numarayı giriniz ve enter a basınız."); Console.WriteLine("1)dx+cn2)dx^2+cn3) (x+d)^1/2"); int girdi2 = Convert.ToInt32(Console.ReadLine()); while (girdi2 == 1) { Console.WriteLine("f(x) e bağlı olan y=H(x)=dx+c olan bir sürekli rastgele değişkenin d ve c değerlerini giriniz:"); d = Convert.ToInt32(Console.ReadLine()); c = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("y=H(x)={0}x+({1})", d, c); Console.WriteLine("F(x)'e bağlı y=H(x) fonksiyonumuzun kümülatif dağılım fonksiyonu f = ({0}y^2-{1}y+{2})/{3}", a, 2 * a * c + 2 * b * d, a * c * c - 2 * d * b * c, 2 * d * d); break; } while (girdi2 == 2) { Console.WriteLine("f(x)'e bağlı seçtiğiniz y=H(x)=dx^2+c sürekli rastgele değişkeninin d ve c değerlerini giriniz:"); d = Convert.ToInt32(Console.ReadLine()); c = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("y=H(x)={0}x^2+({1})", d, c);
  • 2. Console.WriteLine("F(x) e bağlı y=H(x) fonksiyonumuzun kümülatif dağılım fonksiyonu f = [({0}y-{1}/{2})+({3}(y-{4}/{5})^1/2)]", a, a * c, 2 * d, b, c, d); break; } while (girdi2 == 3) { Console.WriteLine("f(x)'e bağlı seçtiğiniz y=H(x)=(x+d)^1/2 sürekli rastgele değişeninin d değerini giriniz:"); d = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("y=H(x)=(x+({0}))^1/2", d); Console.WriteLine("F(x)'e bağlı y=H(x)= fonksiyonumuzun kümülatif dağılım fonksiyonu f=[{0}y^4+{1}y^2+{2}]/2", a, (2 * b) - (2 * d * a), (d * d * a) - (2 * b * d)); break; } break; } else Console.WriteLine("Girdiğiniz aralıklar denklem için geçerli bir olasılık değeri ifade etmiyor.Değerleri değiştirip tekrar giriniz."); } else Console.WriteLine("k<l olacak şekilde değer giriniz."); } while (girdi == 2) { Console.WriteLine("(ax^2+b) şeklinde seçtiğiniz sürekli rastgele değişken olan f(x) in a ve b değerlerini giriniz:"); a = Convert.ToInt32(Console.ReadLine()); b = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("{0}x^2+({1}) denkleminin geçerli olduğu aralıkları giriniz (k<=x<=l k ve l değerlerini giriniz):", a, b); k = Convert.ToInt32(Console.ReadLine()); l = Convert.ToInt32(Console.ReadLine()); if(k<l) { if((a*l*l*l/3)+(b*l)-(a*k*k*k/3)-(b*k)==1) { Console.WriteLine("Denklemi {0}x^2+{1} olan ve aralığı {2}<=x<={3} olan fonksiyonumuzun x in diğer değerleri için değeri 0 olacaktır.", a, b, k, l); Console.WriteLine("f(x)'e bağlı y fonksiyonu için bir denklem seçiniz, seçmek için başındaki numarayı giriniz ve enter a basınız."); Console.WriteLine("1)dx+cn2)dx^2+cn3)(x+d)^1/2"); int girdi2 = Convert.ToInt32(Console.ReadLine()); while (girdi2 == 1) { Console.WriteLine("f(x) e bağlı olan y=H(x)=dx+c olan bir sürekli rastgele değişkenin d ve c değerlerini giriniz:"); d = Convert.ToInt32(Console.ReadLine()); c = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("y(H(x))={0}x+({1})", d, c); Console.WriteLine("F(x) e bağlı y=H(x) fonksiyonumuzun kümülatif dağılım fonksiyonu f = ({0}y^3-{1}y^2+{2}y-{3})/{4}", a,3*a*c,(3*a*c*c)+(3*b*d*d),(a*c*c*c)+(3*b*d*d*c),3*d*d*d); break; }
  • 3. while (girdi2 == 2) { Console.WriteLine("f(x) e bağlı seçtiğiniz y=H(x)=dx^2+c sürekli rastgele değişkeninin d ve c değerlerini giriniz:"); d = Convert.ToInt32(Console.ReadLine()); c = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("y(H(x))={0}x^2+({1})", d, c); Console.WriteLine("F(x) e bağlı y=H(x) fonksiyonumuzun kümülatif dağılım fonksiyonu f =[{0}(y-{1})^3/2]/{2}+{3}(y-{1}/{4})^1/2)", a, c, 3 * d ^ (3 / 2), b, d); break; } while (girdi2 == 3) { Console.WriteLine("f(x)'e bağlı seçtiğiniz y=H(x)=(x+d)^1/2 sürekli rastgele değişeninin d değerini giriniz:"); d = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("y=H(x)=(x+({0}))^1/2", d); Console.WriteLine("F(x)'e bağlı y=H(x)= fonksiyonumuzun kümülatif dağılım fonksiyonu f=[{0}y^6-{1}y^4-{2}y^2- {3}]/3",a,3*d*a,(3*d*d*a)+(3*b),(d*d*d*a)+(3*b*d)); break; } break; } else Console.WriteLine("Girdiğiniz aralıklar denklem için geçerli bir olasılık değeri ifade etmiyor.Değerleri değiştirip tekrar giriniz."); } else Console.WriteLine("k<l olacak şekilde değer giriniz.");} while (girdi == 3) { Console.WriteLine("(ax^2+bx+e) şeklinde seçtiğiniz sürekli rastgele değişken olan f(x) in a,b ve e değerlerini giriniz:"); a = Convert.ToInt32(Console.ReadLine()); b = Convert.ToInt32(Console.ReadLine()); e = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("{0}x^2+({1})x+({2}) denkleminin geçerli olduğu aralıkları giriniz (k<=x<=l k ve l değerlerini giriniz):", a, b, e); k = Convert.ToInt32(Console.ReadLine()); l = Convert.ToInt32(Console.ReadLine()); if (k < l) { if((a*l*l*l/3)+(b*l*l/2)+(e*l)-(a*k*k*k/3)-(b*k*k/2)-(e*k)==1) { Console.WriteLine("Denklemi {0}x^2+{1}x+{4} olan ve aralığı {2}<=x<={3} olan fonksiyonumuzun x in diğer değerleri için değeri 0 olacaktır.", a, b, k, l, e); Console.WriteLine("f(x)'e bağlı y fonksiyonu için bir denklem seçiniz, seçmek için başındaki numarayı giriniz ve enter a basınız."); Console.WriteLine("1) dx+cn2) dx^2+cn3) (x+d)^1/2"); int girdi2 = Convert.ToInt32(Console.ReadLine()); while (girdi2 == 1) { Console.WriteLine("f(x) e bağlı olan y=H(x)=dx+c olan bir sürekli rastgele değişkenin d ve c değerlerini giriniz:"); d = Convert.ToInt32(Console.ReadLine());
  • 4. c = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("y=H(x)=({0})x+({1})", d, c); Console.WriteLine("F(x) e bağlı y=H(x) fonksiyonumuzun kümülatif dağılım fonksiyonu f = ({0}y^3+{1}y^2+{2}y+{3})/{4}", 2 * a, (3 * b * d) - (6 * c * a), (6 * a * c * c) - (6 * b * d * c) + (6 * e * d * d), (3 * d * b * c * c) - (2 * a * c * c * c) - (6 * e * c * d * d), 6 * d * d * d); break; } while (girdi2 == 2) { Console.WriteLine("f(x) e bağlı olan y=H(x)=dx^2+c olan bir sürekli rastgele değişkenin d ve c değererini giriniz:"); d = Convert.ToInt32(Console.ReadLine()); c = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("y=H(x)=({0})x^2+({1})", d, c); Console.WriteLine("F(x)'e bağlı y=H(x) fonksiyonumuzun kümülatif dağılım fonksiyonu f=[({0}(y-{1})^3/2)/{2}]+[{3}y-{4}/{5}]+[{6}((y-{1})^1/2)/{7}]", a, c, 3 * d ^ (3 / 2), b, b * c, 2 * d, e, d ^ (1 / 2)); break; } while (girdi2 == 3) { Console.WriteLine("f(x)'e bağlı seçtiğiniz y=H(x)=(x+d)^1/2 sürekli rastgele değişeninin d değerini giriniz:"); d = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("y=H(x)=(x+({0}))^1/2", d); Console.WriteLine("F(x)'e bağlı y=H(x)= fonksiyonumuzun kümülatif dağılım fonksiyonu f=[{0}y^6+{1}y^4+{2}y^2+{3}]/6", 2 * a, (3 * b) - (6 * a * d), (6 * d * d * a) - (6 * d * b) + (6 * e), (3 * b * d * d) - (6 * e * d) - (2 * d * d * d * a)); break; } break; } else Console.WriteLine("Girdiğiniz aralıklar denklem için geçerli bir olasılık değeri ifade etmiyor.Değerleri değiştirip tekrar giriniz."); } else Console.WriteLine("k<l olacak şekilde değer giriniz."); } Console.WriteLine(" DİNLEDİĞİNİZ İÇİN TEŞEKKÜRLER.n GROUPENDÜSTRİZM"); Console.ReadLine(); } } }