• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            Brian Warehouse

            Some birds aren`t meant to be caged, their feathers are just too bright... ...
            posts - 40, comments - 16, trackbacks - 0, articles - 1

            POJ 1045 Bode Plot

            Posted on 2010-08-17 14:49 Brian 閱讀(964) 評(píng)論(0)  編輯 收藏 引用 所屬分類: POJ

            我覺得有必要把它翻譯一下,然后就會(huì)發(fā)現(xiàn)考得其實(shí)是數(shù)學(xué),你在google 翻譯上是得不到如下翻譯的:
            Description
            考慮下面的交流電路。我們將假定電路在穩(wěn)態(tài)。因此,節(jié)點(diǎn)1的電壓和節(jié)點(diǎn)2的電壓分別是v1 = VS coswt 和 v2 = VRcos (wt + q),其中Vs是電源電壓,w是頻率(弧度每秒),t是時(shí)間。VR是電阻R兩端電壓下降的幅度,q是它的相位。
            POJ 1045 Bode Plot - Icho - Brian Warehouse
            你需要寫一個(gè)程序,以確定不同的w對(duì)應(yīng)的VR值。您將需要兩個(gè)電學(xué)定律來解決這個(gè)問題。第一
            個(gè)是是歐姆定律,表述為V2 = iR,其中i是在電路順時(shí)針流向的電流大小。
            第二個(gè)是i = C d/dt (v1-v2),i與電容器兩板上的電壓有關(guān)。"d/dt" 意為求關(guān)于t的求導(dǎo)。
            Input
            輸入包括一行或多行。第一行包括三個(gè)實(shí)數(shù)和一個(gè)非負(fù)整數(shù)。實(shí)數(shù)按順序是VS,R,C。
            整數(shù)n是測(cè)試用例的個(gè)數(shù)。接下來的n行就是輸入,要求一行一個(gè)實(shí)數(shù),代表w的值。

            Output
            輸出n行的VR值,注意,結(jié)果精確到小數(shù)點(diǎn)后三位。
            下面需要推導(dǎo)一下求VR的公式:
            V2=iR=CR d/dt (VS*cos(wt)-VR*cos(wt+q))=VRcos(wt+q)
                     = CR w (sin(wt+q)-sin(wt))=VRcos(wt+q)
            下面用到高中數(shù)學(xué)當(dāng)中的計(jì)算方法,分別令 t=0 和 wt+q=0 ,得到 CRw  tan b = 1 和 VR=CRw VS sin b ,
            然后利用三角函數(shù)中的萬能公式,求得 :VR = CRw VS / sqrt (1+ (CRw) ^ 2 ))

            POJ 1045 Bode Plot - Icho - Brian Warehouse// C 編譯器:
            POJ 1045 Bode Plot - Icho - Brian Warehouse
            #include <stdio.h>
            POJ 1045 Bode Plot - Icho - Brian Warehouse#include 
            <math.h>
            POJ 1045 Bode Plot - Icho - Brian Warehouse
            int main()
            POJ 1045 Bode Plot - Icho - Brian WarehousePOJ 1045 Bode Plot - Icho - Brian Warehouse
            POJ 1045 Bode Plot - Icho - Brian Warehouse{
            POJ 1045 Bode Plot - Icho - Brian Warehouse    
            int i=0,n;
            POJ 1045 Bode Plot - Icho - Brian Warehouse    
            double VR,VS,R,C,w;
            POJ 1045 Bode Plot - Icho - Brian Warehouse    scanf(
            "%lf%lf%lf%d",&VS,&R,&C,&n);    
            POJ 1045 Bode Plot - Icho - Brian Warehouse    
            POJ 1045 Bode Plot - Icho - Brian Warehouse    
            for (; i<n; i++)
            POJ 1045 Bode Plot - Icho - Brian WarehousePOJ 1045 Bode Plot - Icho - Brian Warehouse    
            POJ 1045 Bode Plot - Icho - Brian Warehouse{
            POJ 1045 Bode Plot - Icho - Brian Warehouse        scanf(
            "%lf",&w);
            POJ 1045 Bode Plot - Icho - Brian Warehouse        VR
            =C*R*w*VS / sqrt(1+C*C*R*R*w*w);
            POJ 1045 Bode Plot - Icho - Brian Warehouse        printf(
            "%.3lf\n",VR);
            POJ 1045 Bode Plot - Icho - Brian Warehouse    }

            POJ 1045 Bode Plot - Icho - Brian Warehouse    
            return 0;
            POJ 1045 Bode Plot - Icho - Brian Warehouse}

            注意 , 用 double 
            狠狠干狠狠久久| 国产精品久久久久久一区二区三区| 久久精品国产亚洲沈樵| 91麻精品国产91久久久久| 国产一区二区精品久久岳| 久久夜色撩人精品国产小说| 亚洲午夜久久久影院| 久久久久久亚洲精品无码| 亚洲AV无码一区东京热久久| 狠狠综合久久综合中文88| 亚洲色婷婷综合久久| 久久精品无码一区二区三区日韩| 伊人久久大香线蕉av一区| 久久电影网| 色噜噜狠狠先锋影音久久| 国内精品久久久久影院薰衣草 | 久久性精品| 久久精品国产亚洲av麻豆小说| 欧美久久亚洲精品| 久久精品男人影院| 奇米综合四色77777久久| 亚洲精品国精品久久99热| 亚洲狠狠久久综合一区77777 | 久久综合欧美成人| 亚洲欧美伊人久久综合一区二区| 久久WWW免费人成—看片| 久久精品国产半推半就| 性欧美丰满熟妇XXXX性久久久 | 色婷婷久久久SWAG精品| 国产成人久久精品二区三区| 久久久av波多野一区二区| 亚洲精品tv久久久久久久久| 久久99久久99精品免视看动漫| 亚洲一级Av无码毛片久久精品| 久久精品国产亚洲AV不卡| 国产精品一区二区久久精品无码 | 伊人久久大香线蕉无码麻豆| 国产精品内射久久久久欢欢| 久久精品国产黑森林| 久久伊人中文无码| 久久综合色老色|