Algoritmo de Briot-Ruffini

Paolo Ruffini

Algoritmo de Briot-Ruffini, por vezes denominado apenas como regra de Ruffini, é um método de resolução de frações polinomiais, criado por Paolo Ruffini. Esse algoritmo consiste em efetuar a divisão fazendo cálculos apenas com coeficientes e só serve para divisões de um polinômio por um binômio da forma .

As divisões de polinômios por binômios, como por exemplo: , e , surgem em problemas de matemática mais frequentemente do que quaisquer outras divisões de polinômios e desempenham papel importante na pesquisa de zeros de funções e na resolução de equações.

Exemplo

Divisão de um Polinômio por xa

Seja:

Queremos dividir P(x) por D(x) usando a regra de Ruffini. Primeiro observamos que D(x) não é um binômio da forma xa, mas da forma x + a. Então reescrevemos D(x) deste modo:

Agora aplicamos o algoritmo:

1. Transcrevemos os coeficientes e a. Note que, como P(x) não contém um coeficiente para x, então escrevemos 0:

    |     2     3     0     -4
    |                                    
 -1 |                                    
----|---------------------------
    |                                    
    |

2. Passe o primeiro coeficiente

    |     2     3     0     -4
    |                                    
 -1 |                                    
----|----------------------------
    |     2                              
    |

3. Multiplique-o por a:

    |     2     3     0     -4
    |                                    
 -1 |          -2                         
----|----------------------------
    |     2                              
    |

4. Some os valores da coluna:

    |     2     3     0     -4
    |
 -1 |          -2
----|----------------------------
    |     2     1
    |

5. Repita os passos 3 e 4 até a última coluna:

    |     2     3     0     -4
    |
 -1 |          -2    -1      1
----|----------------------------
    |     2     1    -1     -3
    |    {coeficientes}   {resto}


, onde
e

isto é,

Exemplo de código fonte

import java.util.Scanner;

public class BriotRuffiniAlgorithm {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        
        System.out.print("Digite o grau do polinômio: ");
        int degree = input.nextInt();
        
        double[] coefficients = new double[degree + 1];
        System.out.println("Digite os coeficientes do polinômio, do termo de maior grau ao termo de menor grau:");
        for (int i = degree; i >= 0; i--) {
            System.out.print("x^" + i + ": ");
            coefficients[i] = input.nextDouble();
        }
        
        System.out.print("Digite o valor de x para avaliar o polinômio: ");
        double x = input.nextDouble();
        
        double[] result = briotRuffini(coefficients, x);
        
        System.out.print("Resultado: ");
        for (int i = 0; i < result.length; i++) {
            System.out.print(result[i]);
            if (i < result.length - 1) {
                System.out.print(", ");
            }
        }
        
        input.close();
    }
    
    public static double[] briotRuffini(double[] coefficients, double x) {
        int degree = coefficients.length - 1;
        double[] result = new double[degree];
        
        result[0] = coefficients[degree];
        for (int i = degree - 1; i > 0; i--) {
            result[i] = coefficients[i] + x * result[i - 1];
        }
        
        return result;
    }

}

Ver também

Read other articles:

Douglas A-26 Invader (ditunjuk B-26 antara 1948-1965) adalah pesawat light bomber bermesin ganda dan pesawat serangan pengintai (reconnaissance aircraft) sayap tinggi (high wing) Amerika Serikat yang dibangun oleh Douglas Aircraft selama Perang Dunia II juga selama beberapa konflik besar Perang Dingin. Sejumlah terbatas pesawat sangat dimodifikasi (sebutan A-26 restored) disajikan dalam pertempuran sampai 1969. Dibuat menjadi pesawat cepat yang mampu membawa beban dua kali bom yang ditentuka...

 

UK executive agency Defence Electronics and Components AgencyAgency overviewFormed2015JurisdictionUnited KingdomHeadquartersMoD Sealand, FlintshireMinister responsibleJames Cartlidge MP, Minister of StateParent agencyMinistry of DefenceWebsitewww.gov.uk/government/organisations/defence-electronics-and-components-agency The Defence Electronics and Components Agency (DECA) is an executive agency sponsored by the United Kingdom's Ministry of Defence. The agency was formed in April 2015 from the ...

 

Mata ayam Klasifikasi ilmiah Kerajaan: Plantae Divisi: Magnoliophyta Kelas: Magnoliopsida Ordo: Arecales Famili: Myrsinaceae Genus: Ardisia Spesies: A. crispa Nama binomial Ardisia crispa Mata ayam atau juga dikenali sebagai mata pelanduk adalah tumbuhan renek yang mempunyai daun yang memanjang dan bergeligih. Tumbuhan ini merupakan sejenis tumbuhan tropikal. Nama sainsnya Ardisia crispa. Pokok Mata Pelanduk/Mata Ayam. Pengidentifikasi taksonArdisia crispa Wikidata: Q11294922 Wikispecie...

Questa voce sull'argomento stagioni delle società calcistiche italiane è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Segui i suggerimenti del progetto di riferimento. Voce principale: Società Sportiva Dilettantistica Calcio Città di Brindisi. Polisportiva Brindisi SportStagione 1942-1943Sport calcio Squadra Brindisi Allenatore Alfredo De Vivi Serie C7º posto nel girone M. 1941-1942 1945-1946 Si invita a seguire il modello di voce Questa voc...

 

Spacecraft communications network This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (August 2011) (Learn how and when to remove this template message) SpaceWire SpecificationsCreated byEuropean Space AgencySpeed2.0–400 Mbit/sStyleSerialHotplugging interfaceYesExternal interfaceYesWebsitespacewire.esa.int/WG/SpaceWire/ SpaceWire Connector SpecificationsTyp...

 

June 1939 WPA construction project on the Oswego River at the CR 679 overpass near Harrisville, New Jersey and just southwest of Harrisville Lake and Harrisville Dam. View of the August 20, 1939 Oswego River flood at Harrisville, New Jersey as seen from where Chatsworth Rd/County Route 679 crosses the Oswego River. The 1939 flood occurred despite the Harrisville Dam being in place since 1932. The Oswego River is a 23.7-mile-long (38.1 km)[1] tributary of the Wading River in the s...

For the York, Pennsylvania, radio station, see WARM-FM. Radio station in Scranton, PennsylvaniaWARMSimulcasting WLGD DallasScranton, PennsylvaniaBroadcast areaScranton/Wilkes-Barre/HazletonFrequency590 kHzBrandingBigfoot Legends 101.7 & 107.7ProgrammingFormatClassic countryAffiliationsCompass Media NetworksOwnershipOwnerSeven Mountains Media(Southern Belle, LLC)Sister stationsWLGDHistoryFirst air date1940Technical information[1]Licensing authorityFCCFacility ID70504ClassBPower1,8...

 

Persekam Metro FCNama lengkapPersatuan Sepak bola Kabupaten Malang Metro Football ClubJulukanMacan KumbangBerdiri1970; 54 tahun lalu (1970)StadionStadion Kahuripan Turen Kabupaten Malang(Kapasitas: 15.000)Ketua Agus Sa'dullahManajer M. Ukasya AliLigaLiga 3 Kostum kandang Kostum tandang Persekam Malang (dikenal pula sebagai Persekam Metro FC Malang ) adalah sebuah klub sepak bola Indonesia yang saat ini bermain di Liga 3 2021 Jawa Timur. Klub ini adalah salah satu dari 12 tim yang ada di ...

 

الحزب الديمقراطي الاجتماعي الألماني (بالألمانية: Sozialdemokratische Partei Deutschlands)‏  البلد ألمانيا جمهورية فايمار القيصرية الألمانية  التأسيس تاريخ التأسيس 27 مايو 1875؛ منذ 148 سنة (1875-05-27) اندماج الجمعية العامة للعمال الألمان حزب العمال الديمقراطي الاشتراكي الألماني ا�...

  「俄亥俄」重定向至此。关于其他用法,请见「俄亥俄 (消歧义)」。 俄亥俄州 美國联邦州State of Ohio 州旗州徽綽號:七葉果之州地图中高亮部分为俄亥俄州坐标:38°27'N-41°58'N, 80°32'W-84°49'W国家 美國加入聯邦1803年3月1日,在1953年8月7日追溯頒定(第17个加入联邦)首府哥倫布(及最大城市)政府 • 州长(英语:List of Governors of {{{Name}}}]]) •&...

 

Державний комітет телебачення і радіомовлення України (Держкомтелерадіо) Приміщення комітетуЗагальна інформаціяКраїна  УкраїнаДата створення 2003Керівне відомство Кабінет Міністрів УкраїниРічний бюджет 1 964 898 500 ₴[1]Голова Олег НаливайкоПідвідомчі ор...

 

American actor and comedian D. L. HughleyHughley at the 72nd Annual Peabody Awards in May 20, 2013BornDarryl Lynn Hughley (1963-03-06) March 6, 1963 (age 61)Portsmouth, Virginia, U.S.OccupationsActorcomedianproducerscreenwriterradio personalityYears active1991–presentSpouse LaDonna Hughley ​(m. 1986)​Children3 Darryl Lynn Hughley (/ˈhjuːɡliː/; born March 6, 1963)[1] is an American actor and stand-up comedian. Hughley is best known as the or...

2010 studio album by Wilson PhillipsChristmas in HarmonyStudio album by Wilson PhillipsReleasedOctober 12, 2010 (2010-10-12)Recorded2010GenrePop, ChristmasLabelSony MasterworksProducerGlen BallardWilson Phillips chronology California(2004) Christmas in Harmony(2010) Dedicated(2012) Christmas in Harmony is the fourth studio album by American pop group Wilson Phillips. A Christmas album, it is their first in six years, after their 2004 covers album California. The album s...

 

يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة من خلال إضافة مصادر موثوق بها. أي معلومات غير موثقة يمكن التشكيك بها وإزالتها. (يوليو 2023) NGC 2451 إن جي سي 2451 مراقبة البيانات (J2000 حقبة) الكوكبة الشراع رمز الفهرس NGC 2451 (الفهرس العام الجديد)C 0743-378 (فهرس �...

 

1997 single by PortisheadAll MineSingle by Portisheadfrom the album Portishead B-sideCowboysReleased8 September 1997Recorded1996–1997Genre Trip hop jazz fusion Length4:00LabelGo! Discs/LondonSongwriter(s) Geoff Barrow Beth Gibbons Adrian Utley Producer(s)Portishead and Dave McDonaldPortishead singles chronology Glory Box (1995) All Mine (1997) Over (1997) All Mine is the second track and first single from English electronic music band Portishead's self-titled second album (1997). The song w...

For the percussion instrument, see timbales. Preparing helado de paila, in Ibarra, Ecuador. A paila (Spanish pronunciation: [ˈpajla]) is a type of cookware that in several Spanish-speaking South American countries refers to a large shallow metal pan or earthenware bowl which oftentimes is also used as a serving plate for the foods prepared in it. Dishes served in clay pailas are often prepared in the paila itself by way of baking in an oven. By extension, the word paila is also used ...

 

Displacement of the solid earth's surface caused by the gravity of the Moon and Sun Earth tide (also known as solid-Earth tide, crustal tide, body tide, bodily tide or land tide) is the displacement of the solid earth's surface caused by the gravity of the Moon and Sun. Its main component has meter-level amplitude at periods of about 12 hours and longer. The largest body tide constituents are semi-diurnal, but there are also significant diurnal, semi-annual, and fortnightly contributions. Tho...

 

Astro Maya HDLogo Astro Maya HDDiluncurkan24 Juni 2013 (HD)Ditutup14 Januari 2019PemilikAstro Malaysia Holdings BerhadNegaraMalaysiaKantor pusatAstro Measat Broadcast Network System, Bukit Jalil, Kuala Lumpur, MalaysiaSaluran seindukAstro RiaAstro PrimaAstro OasisAstro CeriaAstro TVIQSitus webwww.astro.com.myKetersediaan IPTVSaluran 609 (HD)Singtel TV (Singapura) Astro Maya HD merupakan saluran kedua Malaysia milik televisi satelit Astro yang menampilkan drama, telemovie, hiburan, acara reali...

Glabridin Names IUPAC name (3R)-6′′,6′′-Dimethyl-6′′H-pyrano[2′′,3′′:7,8]isoflavan-2′,4′-diol Systematic IUPAC name 4-[(3R)-8,8-Dimethyl-3,4-dihydro-2H,8H-(benzo[1,2-b:3,4-b′]dipyran)-3-yl]benzene-1,3-diol Identifiers CAS Number 59870-68-7 Y 3D model (JSmol) Interactive image ChEBI CHEBI:5369 N ChEMBL ChEMBL480477 Y ChemSpider 110560 Y ECHA InfoCard 100.126.141 PubChem CID 124052 UNII HOC5567T41 Y CompTox Dashboard (EPA) DTXSID00208589 InChI...

 

デニソワ人 地質時代 更新世 分類 ドメイン : 真核生物 Eukaryota 界 : 動物界 Animalia 門 : 脊索動物門 Chordata 亜門 : 脊椎動物亜門 Vertebrata 綱 : 哺乳綱 Mammalia 目 : 霊長目(サル目) Primates 亜目 : 真猿亜目 Haplorhini 上科 : ヒト上科 Hominoidea 科 : ヒト科 Hominidae 亜科 : ヒト亜科 Homininae 族 : ヒト族 Hominini 亜族 : ヒト亜族 Hominina 属 : ヒト属 Homo 和名 デニソワ人 英名 Denisova hominin デ�...