[Solved]1 Approximate Following Integra Exp Z Using Composite Midpoint Rule Composite Trapezoid Ru Q37196916

Please Help, MatLab!

1. Approximate the following integra exp(z), using the composite midpoint rule, composite trapezoid rule, and composite Simps

1. Approximate the following integra exp(z), using the composite midpoint rule, composite trapezoid rule, and composite Simpson’s method. Each method should involve exactly n 2k + l integrand evaluations, k 1 : 20, On the same plot, graph the absolute error as a function ofn 2. Approximate the integral from Question 1 using integral, Matlab’s built-in numerical integrator. What is the absolute error? 3. Repeat Question 1 for V1+ (cos adr, using integral for the “exact” solution Show transcribed image text 1. Approximate the following integra exp(z), using the composite midpoint rule, composite trapezoid rule, and composite Simpson’s method. Each method should involve exactly n 2k + l integrand evaluations, k 1 : 20, On the same plot, graph the absolute error as a function ofn 2. Approximate the integral from Question 1 using integral, Matlab’s built-in numerical integrator. What is the absolute error? 3. Repeat Question 1 for V1+ (cos adr, using integral for the “exact” solution

Expert Answer


Answer to 1. Approximate the following integra exp(z), using the composite midpoint rule, composite trapezoid rule, and composite … . . .

[Solved]1 Approximate Following Integral Exp Z Using Composite Midpoint Rule Composite Trapezoid R Q37245768

matlab1. Approximate the following integral, exp(z), using the composite midpoint rule, composite trapezoid rule, and composite Sim

1. Approximate the following integral, exp(z), using the composite midpoint rule, composite trapezoid rule, and composite Simpson’s method. Each method should involve exactly n-21 integrand evaluations, k as a function of n. 1:20. On the same plot, graph the absolute error 2. Approximate the integral from Question 1 using integral, Matlab’s built-in numerical integrator. What is the absolute error? 3. Repeat Question 1 for V1 +(cosdr using integral for the “exact” ส。lution. Optional ungraded: Improve integrate’s approximation using its AbsTol and RelTol options. Also, exploit the periodicity of the integrand to improve your approximations without increasing the number of integrand evaluations. Show transcribed image text 1. Approximate the following integral, exp(z), using the composite midpoint rule, composite trapezoid rule, and composite Simpson’s method. Each method should involve exactly n-21 integrand evaluations, k as a function of n. 1:20. On the same plot, graph the absolute error 2. Approximate the integral from Question 1 using integral, Matlab’s built-in numerical integrator. What is the absolute error? 3. Repeat Question 1 for V1 +(cosdr using integral for the “exact” ส。lution. Optional ungraded: Improve integrate’s approximation using its AbsTol and RelTol options. Also, exploit the periodicity of the integrand to improve your approximations without increasing the number of integrand evaluations.

Expert Answer


Answer to 1. Approximate the following integral, exp(z), using the composite midpoint rule, composite trapezoid rule, and composit… . . .

[Solved]1 Approximate Median Tream M Elements Simplicity Assume Et S X1 T2 Xm Denote S Elements Q37289141

1 Approximate Median tream of m elements. For simplicity, assume et S - (x1, T2,. . . , Xm) denote a s that the elements in t

1 Approximate Median tream of m elements. For simplicity, assume et S – (x1, T2,. . . , Xm) denote a s that the elements in the stream are unique. Define the position of an element to be pos(r) – | {0€ S|y 〈 x}| . The e-approximate median is then defined to be an element x such that: 2 Provide an algorithm which returns a e-approximate median with high probability Provide a 3-part solution providing the algorithm, proof of correctness and the space complexity of the alg in space independent of the size of the stream. (Hint: Try to provide a sampling based algorithm and argue that less than 1/2 of the samples will be from the 1/2 -e and 1/2 + є percentile-use a Hoeffding bound for this argument). The following is a one-sided version of the Hoeffding bound which might be useful for this and other problems: solve the problem rithm. Note that the optimal algorithm can Show transcribed image text 1 Approximate Median tream of m elements. For simplicity, assume et S – (x1, T2,. . . , Xm) denote a s that the elements in the stream are unique. Define the position of an element to be pos(r) – | {0€ S|y 〈 x}| . The e-approximate median is then defined to be an element x such that: 2 Provide an algorithm which returns a e-approximate median with high probability Provide a 3-part solution providing the algorithm, proof of correctness and the space complexity of the alg in space independent of the size of the stream. (Hint: Try to provide a sampling based algorithm and argue that less than 1/2 of the samples will be from the 1/2 -e and 1/2 + є percentile-use a Hoeffding bound for this argument). The following is a one-sided version of the Hoeffding bound which might be useful for this and other problems: solve the problem rithm. Note that the optimal algorithm can

Expert Answer


Answer to 1 Approximate Median tream of m elements. For simplicity, assume et S – (x1, T2,. . . , Xm) denote a s that the elements… . . .

[Solved]1 Arrays Write Following Array Functions Use Integer Arrays Suppose Arr 1 4 6 5 2 7 10 Se Q37191477

Please use c++, thank you!

1. Arrays Write the following array functions. Use integer arrays. Suppose, arr[ - (1, 4, 6, 5, 2, 7, 10) a. Search for a giv

1. Arrays Write the following array functions. Use integer arrays. Suppose, arr[ – (1, 4, 6, 5, 2, 7, 10) a. Search for a given value in the array and return the index of the location. Return -1 if not found in the array. void search (int arr, int n, int val) Using the above array arr, search (arr, 7, 6) should return 2, and search (arr, 7, 8) should return1 Reverse the contents of the array. void reverse (int arr, int n); Using the above array arr, reverse (arr, 7) should return result in arr b. contents rearranged as follows: arr(10, 7, 2, 5, 6, 4, 11 Rearrange the array such that all the odd elements in the array are in the beginning of c. the array void oddFirst (int arr[, int n) Using the above array arr, oddFirst (arr, 7) should return result in arr contents rearranged as follows: arr(1, 5, 7, 4, 6, 2, 10) Show transcribed image text 1. Arrays Write the following array functions. Use integer arrays. Suppose, arr[ – (1, 4, 6, 5, 2, 7, 10) a. Search for a given value in the array and return the index of the location. Return -1 if not found in the array. void search (int arr, int n, int val) Using the above array arr, search (arr, 7, 6) should return 2, and search (arr, 7, 8) should return1 Reverse the contents of the array. void reverse (int arr, int n); Using the above array arr, reverse (arr, 7) should return result in arr b. contents rearranged as follows: arr(10, 7, 2, 5, 6, 4, 11 Rearrange the array such that all the odd elements in the array are in the beginning of c. the array void oddFirst (int arr[, int n) Using the above array arr, oddFirst (arr, 7) should return result in arr contents rearranged as follows: arr(1, 5, 7, 4, 6, 2, 10)

Expert Answer


Answer to 1. Arrays Write the following array functions. Use integer arrays. Suppose, arr[ – (1, 4, 6, 5, 2, 7, 10) a. Search for … . . .

[Solved]1 Asked Solve Problem Described System Difference Constraints Constraint Form Xi X J Bi J Q37160235

1. You have been asked to solve a problem that is described as asystem of difference constraints, where each constraint is of theform xi −x j ≤ bi j, where xi , x j are variables and bi j is aconstant. The following is an example of such a system ofdifference constraints: x1 −x2 ≤ 1, x1 −x4 ≤ −4, x2 −x3 ≤ 2, x2 −x5≤ 7, x2 −x6 ≤ 5, x3 −x6 ≤ 10, x4 −x2 ≤ 2, x5 −x1 ≤ −1, x5 −x4 ≤ 3,x6 −x3 ≤ −8. Specify suitable data structure(s) and algorithm thatwould allow you to solve such a problem. By solving such a problem,it means that you determine suitable values for the variables suchthat all constraint are satisfied or you determine that the problemdoes not have a solution. If a tree data structure is suitable, forexample, you can specify what a tree node is, what a tree edge is,and what a root node is. You may actually use more than one datastructure in your solution (you may use a queue for a breadth-firsttraversal of the tree, for example). If an algorithm from the classlectures is suitable, you can simple state the name of thealgorithm (breadth-first tree traversal, for example). Be concise.What is the time complexity of your algorithm, assuming that thereare n variables and m constraints? Express the time complexity interms of n and m. For the given system of difference constraints,use the proposed data structures to represent it (if you havechosen a tree data structure, for example, you can draw a suitabletree). Use your proposed algorithm to determine suitable values forthe variables or determine that the problem does not have asolution.

You have been asked to solve a problem that is described as a system of difference constraints, where each constraint is of t

You have been asked to solve a problem that is described as a system of difference constraints, where each constraint is of the form x¡-xj S bij, where x,xj are variables and bij is a constant. The following is an example of such a system of difference constraints: r2x6 S 5, t3-x6 10. r2x 2. r6x3 8. Specify suitable data structure(s) and algorithm that would allow you to solve such a problem By solving such a problem, it means that you determine suitable values for the variables such that all constraint are satisfied or vou determine that the problem does not have a solution If a tree data structure is suitable, for example, you can specify what a tree node is, what a tree edge is, and what a root node is. You may actually use more than one data structure in your solution (you may use a queue for a breadth-first traversal of the tree, for example). If an algorithm from the class lectures is suitable, you can simple state the name of the algorithm (breadth-first tree traversal, for example). Be concise. What is the time complexity of your algorithm, assuming that there are n variables and m constraints? Express the time complexity in terms of n and m For the given system of difference constraints, use the proposed data structures to represent it (if you have chosen a tree data structure, for example, you can draw a suitable tree). Use your proposed algorithm to determine suitable values for the variables or determine that the problem does not have a solution Show transcribed image text You have been asked to solve a problem that is described as a system of difference constraints, where each constraint is of the form x¡-xj S bij, where x,xj are variables and bij is a constant. The following is an example of such a system of difference constraints: r2x6 S 5, t3-x6 10. r2x 2. r6x3 8. Specify suitable data structure(s) and algorithm that would allow you to solve such a problem By solving such a problem, it means that you determine suitable values for the variables such that all constraint are satisfied or vou determine that the problem does not have a solution If a tree data structure is suitable, for example, you can specify what a tree node is, what a tree edge is, and what a root node is. You may actually use more than one data structure in your solution (you may use a queue for a breadth-first traversal of the tree, for example). If an algorithm from the class lectures is suitable, you can simple state the name of the algorithm (breadth-first tree traversal, for example). Be concise. What is the time complexity of your algorithm, assuming that there are n variables and m constraints? Express the time complexity in terms of n and m For the given system of difference constraints, use the proposed data structures to represent it (if you have chosen a tree data structure, for example, you can draw a suitable tree). Use your proposed algorithm to determine suitable values for the variables or determine that the problem does not have a solution

Expert Answer


Answer to 1. You have been asked to solve a problem that is described as a system of difference constraints, where each constraint… . . .

[Solved]1 Assume Given Values Eax Ebx Ecx Write Assembly Code Following Eax Ecx Edx Eax Ebx 2 Writ Q37267143

1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that does the following: eax = (ecx + edx )-(eax

1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that does the following: eax = (ecx + edx )-(eax + ebx) 2. Write a piece of code that copies the number inside al to ch. Example: Assume that Initially eax- 0x15DBCB19. At the end of your code ecx 0x00001900. Your code must be as efficient as possible. 3. You are given eax = 0x5, write one line of code in assembly to Zero eax. Don’t use Sub instruction and you must use hex numbers only as immediate numbers. 4. Implement the following arithmetic expression in assembly language: EBX var1-var2-9var3 /size of variables, 4 bytes each 5. Write a piece of code in assembly that implements the following C++ statement num1- num2 4; //x and y are of size word (2 bytes) 6. Write a piece of code that implements the following C++ statements d ‘w /a,d,b are of size byte. a=d+1; b-a 2; Show transcribed image text 1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that does the following: eax = (ecx + edx )-(eax + ebx) 2. Write a piece of code that copies the number inside al to ch. Example: Assume that Initially eax- 0x15DBCB19. At the end of your code ecx 0x00001900. Your code must be as efficient as possible. 3. You are given eax = 0x5, write one line of code in assembly to Zero eax. Don’t use Sub instruction and you must use hex numbers only as immediate numbers. 4. Implement the following arithmetic expression in assembly language: EBX var1-var2-9var3 /size of variables, 4 bytes each 5. Write a piece of code in assembly that implements the following C++ statement num1- num2 4; //x and y are of size word (2 bytes) 6. Write a piece of code that implements the following C++ statements d ‘w /a,d,b are of size byte. a=d+1; b-a 2;

Expert Answer


Answer to 1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that does the following: eax = (ecx + edx )… . . .

[Solved]1 Based Communication Challenges Recommend Effective Communication Solutions Comparing Win Q37269415

1) Based on the communication challenges, recommend effectivecommunication solutions by comparing Windows and Linux OS basedemail servers that would be helpful to implement and enforce thatbest suits for any organization as the business need. The reportshould consider the following keys;

 A comparative study report on Windows and Linux OS based emailservers, ( Microsoft Exchange server 2013 VS. Linux email serverbased Qmail)

 The report should include comparing a few aspects of eachtopic instead of trying to cover both topics comprehensively. Fundamentals  Understanding Server Roles  RecipientAdministration  Server Administration  Managing Mailboxes andetc.

Expert Answer


Answer to 1) Based on the communication challenges, recommend effective communication solutions by comparing Windows and Linux OS … . . .

[Solved]1 Assume System Three Processes P1 P2 P3 Two Files F1 F2 Process P1 Block Process P2 P3 Pr Q37241705

1. Assume that a system has three processes, p1, p2, p3, and twofiles, f1 and f2. Process p1 can block process p2 and p3. Processp2 can wakeup p3. Process p1 has read/write access rights to f2.Process p2 has the execute access to file f1 and the read accessright to f2. Process p3 owns file f1 and can write to file f2. Givethe access control list of file f2 and the capability list ofprocess p1.

2. Assume that the average time to swap a page into the memoryor swap a page out the memory is 20,000 microseconds and that amemory access takes 1 microsecond. Two level paging with all pagetables in memory is used for address translation. Assume furtherthat no cache or associative registers are used for addresstranslation and 50% of the pages being replaced are dirty. What isthe maximum page fault rate if the effective access time per memoryreference is to be 10 microseconds or less? Justify youranswer.

Expert Answer


Answer to 1. Assume that a system has three processes, p1, p2, p3, and two files, f1 and f2. Process p1 can block process p2 and p… . . .

[Solved]1 Based Following Problem Similar Homework 2 Question 1 Create Java Code Criteria Executed Q37180891

1.

  1. Based on the following problem, which is similar toHomework 2 question 1, create the Java code with the below criteriato be executed without errors: (20 points)
    1. You must use a while loop to get the teacher’s inputfor the number of iPads needed.
    2. You must use an if/else statement to ensure the numberof iPads can’t exceed 20.
    3. Provide the modified code or a screenshot of the codein Jdoodle.

You are in charge of the school’s IT department andseveral classes are asking to by iPads for use in their classes.Based on the number of iPads each class requested, determine thetotal costs for each classroom. The only information given is thatthe iPad costs $799, sales tax is 8.2% and there is a total of 10classrooms.

HINT: You will need to get the teacher’s input for theamount that their class will need.

2. Create an array list of students’ first andlast names for each of the 10 classrooms. The number of students inthe class has to be greater than 10 but less than 20. Provide themodified code or a screenshot of the code in Jdoodle —

***NOTE** code for JAVA itwill be an addition to a program I already formulated asking foruser entry for number of ipads for 10 classrooms.

Names provided:

  1. Raquel Choi

  2. Wilson Christian

  3. Devon Rivers

  4. Deanna Cortez

  5. Laurel Bradford

  6. Kinley Neal

  7. Kate Bartlett

  8. Belen Cabrera

  9. Yazmin Hernandez

  10. Morgan Gonzalez

  11. Barrett Mullins

  12. Myles Nash

  13. Lauren Chavez

  14. Augustus Mathis

  15. Bobby Collier

  16. Maci Winters

  17. Davian Sawyer

  18. Rylan Sparks

  19. Alan Robinson

  20. Alexzander Wolf

  21. Kaydence Roth

  22. Emelia Cordova

  23. Aron Webster

  24. Jadyn Tyler

  25. Magdalena Spears

  26. Jovanni Pacheco

  27. Sanaa Trujillo

  28. Dereon Howe

  29. Matthew Kane

  30. Valentino Everett

  31. Zachary Dunlap

  32. Emely Moyer

  33. Bria Melendez

  34. Turner Knight

  35. Arjun Nelson

  36. Devon Osborne

  37. Andreas Valencia

  38. Carlo Lloyd

  39. Charlee Armstrong

  40. Ashleigh Maxwell

  41. Lily Frazier

  42. Keegan Oneal

  43. Cohen Larson

  44. Beckham Herrera

  45. Yaretzi Hendrix

  46. Alonso Maxwell

  47. Sierra Andrade

  48. Janiya Mckay

  49. Jasper Meadows

  50. Jazlene Kirk

  51. Maritza Stafford

  52. Michaela Haney

  53. Camryn Giles

  54. Rylie Chung

  55. Josephine Snyder

  56. Mariela Molina

  57. Elle Arellano

  58. Jean Farmer

  59. Kaylyn Jordan

  60. Lyric Ross

  61. Amir Solomon

  62. Richard Yoder

  63. Lucian Marquez

  64. Alicia Nixon

  65. Amari Gallagher

  66. Yusuf Huffman

  67. Augustus Gibbs

  68. Ryan Barrera

  69. Elaine Macias

  70. Hadley Mccoy

  71. Trevor Simmons

  72. Bobby Norris

  73. Shelby Schmitt

  74. Ramon Moss

  75. Ryann Bailey

  76. Felix Powell

  77. Kaliyah Griffith

  78. Morgan Reynolds

  79. Zayne Pineda

  80. Raymond Lucero

  81. Cory Anderson

  82. Lilah Schultz

  83. Lamont Barrera

  84. Wayne Graves

  85. Kevin Jackson

  86. Dalton Whitney

  87. Douglas Mccarty

  88. Harry Mays

  89. Irvin Porter

  90. Kasen Cisneros

  91. Bo Abbott

  92. Tessa Gonzalez

  93. Octavio Mcdowell

  94. Paris Glover

  95. Zackary Miranda

  96. Savanna Mathews

  97. Kamryn Silva

  98. Robert Kane

  99. Jaden Conway

  100. Cornelius Knapp

  101. Carlos Cowan

  102. Neveah Christensen

  103. Trevon Armstrong

  104. Megan Nash

  105. Tristian Bright

  106. Sanaa Valentine

  107. Katelyn Chandler

  108. Jesus Wall

  109. Paola Blanchard

  110. Collin Mccarthy

  111. Owen Campbell

  112. Karson Kidd

  113. Elisa Rios

  114. Harmony Dyer

  115. Cael Hess

  116. Billy Scott

  117. Everett Perkins

  118. Brooks Hatfield

  119. Gwendolyn Pineda

  120. Cynthia Lawrence

  121. Yuliana Montes

  122. Sheldon Johnson

  123. Kale Cantu

  124. Ariana Pittman

  125. Reilly Wagner

  126. Krystal Warner

  127. Yaretzi Norris

  128. Brock Brewer

  129. Micah Collins

  130. Mitchell Holloway

  131. Abram Merritt

  132. Hudson Foley

  133. Vanessa Norris

  134. Jazmyn Richmond

  135. Kasen Kirk

  136. Eric Carney

  137. Ana Olson

  138. Adeline Douglas

  139. Chaim Briggs

  140. Serena Pittman

  141. Jamie Hines

  142. Marely Kelley

  143. Haven Santos

  144. Victoria Solomon

  145. Jaidyn Zimmerman

  146. Hailee Barrett

  147. Helena Fleming

  148. Nyasia Webb

  149. London Mcpherson

  150. Avah Glenn

  151. Marley Russo

  152. Damion Kelley

  153. Paityn Franklin

  154. Jean Cline

  155. Tamia Franklin

  156. Alden Neal

  157. Immanuel Barnes

  158. Melvin Raymond

  159. Porter Esparza

  160. Marlee Chandler

  161. Celeste Keith

  162. Emma Cunningham

  163. Tyshawn Vaughn

  164. Jeffery Sexton

  165. Victoria Stephens

  166. Kiera Hopkins

  167. Jaydon Gutierrez

  168. Zaire Rollins

  169. Keira Christensen

  170. Armani Brady

  171. Kinsley Holden

  172. Stephanie Durham

  173. Paul Mckay

  174. Walter Barron

  175. Brennan Yoder

  176. Magdalena Poole

  177. Mylee Small

  178. Pedro Schmitt

  179. Kamari Copeland

  180. Nicole Jennings

  181. Ashanti Howell

  182. Quinton Zhang

  183. Mathias Martinez

  184. Alissa Harper

  185. Jacoby Sawyer

  186. Heidi Knight

  187. Antwan Macias

  188. Bronson Strickland

  189. Xiomara Pham

  190. Tanner Blankenship

Expert Answer


Answer to 1. Based on the following problem, which is similar to Homework 2 question 1, create the Java code with the below criter… . . .

[Solved]1 Based Program Loanqualifier2py Design Program Showing Information Kids Going Roller Coas Q37293702

Using python:

1. Based on the program loan_qualifier2.py, to design a program showing information of kids going to the roller coaster. Kidmin-salary- 30000.0 # The minimum annual salary min years2 # The minimum years on the job # Get the customers annual salary

1. Based on the program ‘loan_qualifier2.py, to design a program showing information of kids going to the roller coaster. Kids need to be more than 9 years old, and taller than 120 cm to go on the roller coaster. The program should let the user to enter the age and height of the kid, and decide whether the kid can go on the roller coaster. Enter how tall you are in cm 154 Enter how old you are in years 33 You qualify for going on the roller coaster min-salary- 30000.0 # The minimum annual salary min years2 # The minimum years on the job # Get the customer’s annual salary salaryfloat(input(‘Enter your annual salary) # Get the number of years on the current job years on_job -int(input(‘Enter the number of+ years employed: )) # Determine whether the customer qualifies. if salary >- min_salary and years_on_job >- min years: print(‘You qualify for the loan. “) else: print(‘You do not qualify for this loan.’) Show transcribed image text 1. Based on the program ‘loan_qualifier2.py, to design a program showing information of kids going to the roller coaster. Kids need to be more than 9 years old, and taller than 120 cm to go on the roller coaster. The program should let the user to enter the age and height of the kid, and decide whether the kid can go on the roller coaster. Enter how tall you are in cm 154 Enter how old you are in years 33 You qualify for going on the roller coaster
min-salary- 30000.0 # The minimum annual salary min years2 # The minimum years on the job # Get the customer’s annual salary salaryfloat(input(‘Enter your annual salary) # Get the number of years on the current job years on_job -int(input(‘Enter the number of+ years employed: )) # Determine whether the customer qualifies. if salary >- min_salary and years_on_job >- min years: print(‘You qualify for the loan. “) else: print(‘You do not qualify for this loan.’)

Expert Answer


Answer to 1. Based on the program ‘loan_qualifier2.py, to design a program showing information of kids going to the roller coaster… . . .