SlideShare uma empresa Scribd logo
1 de 2
Matlab Q,
if I use the following code I get a diffrent answe than if I extractd the Coeffs manually and asked
for roots any ideas?
cd=fliplr(coeffs(2*s^4+s^3+5*s^2+36)) % extract Coefficents and flip array name it cn
roots(cd)
ans =
(44869^(1/2)/24 - 475/54)^(1/3) - 29/(36*(44869^(1/2)/24 - 475/54)^(1/3)) - 1/6
29/(72*(44869^(1/2)/24 - 475/54)^(1/3)) - (3^(1/2)*(29/(36*(44869^(1/2)/24 - 475/54)^(1/3)) +
(44869^(1/2)/24 - 475/54)^(1/3))*i)/2 - (44869^(1/2)/24 - 475/54)^(1/3)/2 - 1/6
(3^(1/2)*(29/(36*(44869^(1/2)/24 - 475/54)^(1/3)) + (44869^(1/2)/24 - 475/54)^(1/3))*i)/2 +
29/(72*(44869^(1/2)/24 - 475/54)^(1/3)) - (44869^(1/2)/24 - 475/54)^(1/3)/2 - 1/6
>>
Solution
use
vpa(roots(cd))
or
simplify(roots(cd))
or
double(roots(cd))
Matlab Q- if I use the following code I get a diffrent answe than if I.docx

Mais conteúdo relacionado

Mais de maryi15

Mais de maryi15 (20)

Name two specific non-manufacturing costs that might be included in ac.docx
Name two specific non-manufacturing costs that might be included in ac.docxName two specific non-manufacturing costs that might be included in ac.docx
Name two specific non-manufacturing costs that might be included in ac.docx
 
Name seven (7) characteristics that impact the design of a foundation-.docx
Name seven (7) characteristics that impact the design of a foundation-.docxName seven (7) characteristics that impact the design of a foundation-.docx
Name seven (7) characteristics that impact the design of a foundation-.docx
 
Name some of the problems the ARC has encountered with handling donati.docx
Name some of the problems the ARC has encountered with handling donati.docxName some of the problems the ARC has encountered with handling donati.docx
Name some of the problems the ARC has encountered with handling donati.docx
 
Name and briefly describe three different uses for interrupts-Solution.docx
Name and briefly describe three different uses for interrupts-Solution.docxName and briefly describe three different uses for interrupts-Solution.docx
Name and briefly describe three different uses for interrupts-Solution.docx
 
Name Problem # 2 ( 2e prs ) anging not straight down- but at an angle.docx
Name Problem # 2 ( 2e prs ) anging not straight down- but at an angle.docxName Problem # 2 ( 2e prs ) anging not straight down- but at an angle.docx
Name Problem # 2 ( 2e prs ) anging not straight down- but at an angle.docx
 
nalyze and explain why it is important for management to provide emplo.docx
nalyze and explain why it is important for management to provide emplo.docxnalyze and explain why it is important for management to provide emplo.docx
nalyze and explain why it is important for management to provide emplo.docx
 
myctfitemView-offset-next&assignmentProblemID-- 103375190 Based on pos.docx
myctfitemView-offset-next&assignmentProblemID-- 103375190 Based on pos.docxmyctfitemView-offset-next&assignmentProblemID-- 103375190 Based on pos.docx
myctfitemView-offset-next&assignmentProblemID-- 103375190 Based on pos.docx
 
Mrs- F has invited several wives of delegates to the United Nations fo.docx
Mrs- F has invited several wives of delegates to the United Nations fo.docxMrs- F has invited several wives of delegates to the United Nations fo.docx
Mrs- F has invited several wives of delegates to the United Nations fo.docx
 
Match the Interface with its most efficient implementation- Map- TreeM.docx
Match the Interface with its most efficient implementation- Map- TreeM.docxMatch the Interface with its most efficient implementation- Map- TreeM.docx
Match the Interface with its most efficient implementation- Map- TreeM.docx
 
My Notes Ask Your Teach Two identical diverging lenses are separated b.docx
My Notes Ask Your Teach Two identical diverging lenses are separated b.docxMy Notes Ask Your Teach Two identical diverging lenses are separated b.docx
My Notes Ask Your Teach Two identical diverging lenses are separated b.docx
 
My Notes Ask Your Tesch away using a camera that has a lens with a foc.docx
My Notes Ask Your Tesch away using a camera that has a lens with a foc.docxMy Notes Ask Your Tesch away using a camera that has a lens with a foc.docx
My Notes Ask Your Tesch away using a camera that has a lens with a foc.docx
 
MUS101 Women made huge steps for being recognized musically in the Rom.docx
MUS101 Women made huge steps for being recognized musically in the Rom.docxMUS101 Women made huge steps for being recognized musically in the Rom.docx
MUS101 Women made huge steps for being recognized musically in the Rom.docx
 
MUS101 What musical techniques did Vivaldi use in La Primavera to depi.docx
MUS101 What musical techniques did Vivaldi use in La Primavera to depi.docxMUS101 What musical techniques did Vivaldi use in La Primavera to depi.docx
MUS101 What musical techniques did Vivaldi use in La Primavera to depi.docx
 
MUS101 Women made huge steps for being recognized musically in the Rom (1).docx
MUS101 Women made huge steps for being recognized musically in the Rom (1).docxMUS101 Women made huge steps for being recognized musically in the Rom (1).docx
MUS101 Women made huge steps for being recognized musically in the Rom (1).docx
 
Music 101 How does an Oratorio differ from an Opera- How is it similar.docx
Music 101 How does an Oratorio differ from an Opera- How is it similar.docxMusic 101 How does an Oratorio differ from an Opera- How is it similar.docx
Music 101 How does an Oratorio differ from an Opera- How is it similar.docx
 
MUS101 Discuss the importance of the Patronage System in the Classical.docx
MUS101 Discuss the importance of the Patronage System in the Classical.docxMUS101 Discuss the importance of the Patronage System in the Classical.docx
MUS101 Discuss the importance of the Patronage System in the Classical.docx
 
Multiple choice- circle the best responses below a) The element most e.docx
Multiple choice- circle the best responses below a) The element most e.docxMultiple choice- circle the best responses below a) The element most e.docx
Multiple choice- circle the best responses below a) The element most e.docx
 
Monitor is one of the concurrency mechanisms- It is usually a piece of.docx
Monitor is one of the concurrency mechanisms- It is usually a piece of.docxMonitor is one of the concurrency mechanisms- It is usually a piece of.docx
Monitor is one of the concurrency mechanisms- It is usually a piece of.docx
 
Mini Corp- acquires a patent from Maxi Co- in exchange for 2-500 share.docx
Mini Corp- acquires a patent from Maxi Co- in exchange for 2-500 share.docxMini Corp- acquires a patent from Maxi Co- in exchange for 2-500 share.docx
Mini Corp- acquires a patent from Maxi Co- in exchange for 2-500 share.docx
 
Modern comparative economists would object to the definition of econom.docx
Modern comparative economists would object to the definition of econom.docxModern comparative economists would object to the definition of econom.docx
Modern comparative economists would object to the definition of econom.docx
 

Último

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Último (20)

How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 

Matlab Q- if I use the following code I get a diffrent answe than if I.docx

  • 1. Matlab Q, if I use the following code I get a diffrent answe than if I extractd the Coeffs manually and asked for roots any ideas? cd=fliplr(coeffs(2*s^4+s^3+5*s^2+36)) % extract Coefficents and flip array name it cn roots(cd) ans = (44869^(1/2)/24 - 475/54)^(1/3) - 29/(36*(44869^(1/2)/24 - 475/54)^(1/3)) - 1/6 29/(72*(44869^(1/2)/24 - 475/54)^(1/3)) - (3^(1/2)*(29/(36*(44869^(1/2)/24 - 475/54)^(1/3)) + (44869^(1/2)/24 - 475/54)^(1/3))*i)/2 - (44869^(1/2)/24 - 475/54)^(1/3)/2 - 1/6 (3^(1/2)*(29/(36*(44869^(1/2)/24 - 475/54)^(1/3)) + (44869^(1/2)/24 - 475/54)^(1/3))*i)/2 + 29/(72*(44869^(1/2)/24 - 475/54)^(1/3)) - (44869^(1/2)/24 - 475/54)^(1/3)/2 - 1/6 >> Solution use vpa(roots(cd)) or simplify(roots(cd)) or double(roots(cd))