1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alisiya [41]
3 years ago
13

Write a MATLAB code for the following problem:

Computers and Technology
1 answer:
AysviL [449]3 years ago
7 0
<span>Here is matlab that should work % cos(x) = 1 - (x^2)/2! + (x^4)/4! -(x^6)/6!+(x^8)/8!... % let y= x*x % cos(x) = sum( (-y)^n/(2n)! ) format short x= 0.3*pi; y= x*x; for N= 1:6 n= 0:N; s1= [(-y).^n./factorial(2*n) ] mac= sum(s1); cx= cos(x); str= sprintf('%d terms. series: %12.10f cos(x): %12.10f\n %12.10f',... N, mac,cx, (cx-mac)); disp(str); end;</span>
You might be interested in
Write an article for publication on why every student should be computer literate​
Zigmanuir [339]

Answer:bankrupt

Explanation: no money on your card lol i hope you haveing a great day and i want you to know that you got this babe like is life is good then great but if not then it will get better beause you will make it get better

6 0
3 years ago
Connect 5 LEDs with any random colors. Iteratively, turn ON 1 to 5 LED(s) that will take 5 iterations in total, and in every ite
vlabodo [156]

Answer:

See explaination for program code.

Explanation:

C++ programming language is a powerful general-purpose programming language. It can be used to develop operating systems, browsers, games, and so on.

C++ supports different ways of programming like procedural, object-oriented, functional, and so on. This makes C++ powerful as well as flexible.

Please kindly refer to attachment for a C++ programming code that performs the operation.

7 0
4 years ago
What will be the value of x after the following code is executed? int x = 10; do { x *= 20; } while (x &lt; 5); A. 10 B. 200 C.
dezoksy [38]

Answer:

Option B is the correct answer.

Explanation:

  • In the above code, the loop will execute only one time because the loop condition is false and it is the Do-While loop and the property of the Do-while loop is to execute on a single time if the loop condition is false.
  • Then the statement "x*=20;" will execute one and gives the result 200 for x variable because this statement means "x=x*20".
  • SO the 200 is the answer for the X variable which is described above and it is stated from option B. Hence it is the correct option while the other is not because--
  1. Option A states that the value is 10 but the value is 200.
  2. Option C states that this is an infinite loop but the loop is executed one time.
  3. Option D states that the loop will not be executed but the loop is executed one time
6 0
3 years ago
Read 2 more answers
A communications objective is
Kazeer [188]

Answer:

They are used to identify your audience, craft messages and evaluate results. Communication Objectives are - as the name suggests – the process of setting targets for communication.Changing company or brand perceptions is another common communication objective.

Hope this helps! If so please mark brainliest and rate/heart to help my account

8 0
4 years ago
Which is NOT one of the basic characteristics of life? What feature of Microsoft
polet [3.4K]

Answer: Mail Merge

Explanation:

The feature of Microsoft Word that allows an individual to efficiently create documents that have the same general

content but may have different recipients or purpose is referred to as the Mail Merge

It should be noted that other options such as Send Merge, Print Merge and View Merge is wrong. Therefore, the correct option is A

5 0
3 years ago
Other questions:
  • Tomi is testing all of the links on her web page by clicking on each one in a browser. What type of testing is this considered?
    6·2 answers
  • Which of the following is a dynamic lot-sizing technique that calculates the order quantity by comparing the carrying cost and t
    10·1 answer
  • Suppose a computer has 16-bit instructions. The instruction set consists of 32 different operations. All instructions have an op
    7·1 answer
  • Jasmine is writing a shopping app. She has created a variable to keep track of the number of items in the shopping cart. Every t
    6·1 answer
  • The various protocols in use on the internet are said to operate in layers in which the protocol(s) at each layer solve one prob
    5·2 answers
  • What does the gym member need to give?​
    8·1 answer
  • Write a program to enter a number and test if it is greater than 45.6. If the number entered is greater than 45.6, the program n
    8·1 answer
  • Every presentation should have a beginning, a middle, and an end.
    10·1 answer
  • The Danger zone around a robot is?
    13·2 answers
  • Why can't I go back to my first question when I asked a question about In the Naruto episodes about what happen when naruto figh
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!