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
Anna11 [10]
3 years ago
10

The Taylor series expansion for ax is: Write a MATLAB program that determines ax using the Taylor series expansion. The program

asks the user to type a value for x. Use a loop for adding the terms of the Taylor series. If cn is the nth term in the series, then the sum Sn of the n terms is . In each pass calculate the estimated error E given by . Stop adding terms when . The program displays the value of ax. Use the program to calculate: (a) 23.5 (b) 6.31.7 Compare the values with those obtained by using a calculator.
Computers and Technology
1 answer:
zalisa [80]3 years ago
7 0

Answer: (a). 11.3137

(b). 22.849

Explanation:

Provided below is a step by step analysis to solving this problem

(a)

clc;close all;clear all;

a=2;x=3.5;

E=10;n=0;k=1;sn1=0;

while E >0.000001

cn=((log(a))^n)*(x^n)/factorial(n);

sn=sn1+cn;

E=abs((sn-sn1)/sn1);

sn1=sn;

n=n+1;

k=k+1;

end

fprintf('2^3.5 from tailor series=%6.4f after adding n=%d terms\n',sn,n);

2^3.5 from tailor series=11.3137 after adding n=15 terms

disp('2^3.5 using calculator =11.3137085');

Command window:

2^3.5 from tailor series=11.3137 after adding n=15 terms

2^3.5 using calculator =11.3137085

(b)

clc;close all;clear all;

a=6.3;x=1.7;

E=10;n=0;k=1;sn1=0;

while E >0.000001

cn=((log(a))^n)*(x^n)/factorial(n);

sn=sn1+cn;

E=abs((sn-sn1)/sn1);

sn1=sn;

n=n+1;

k=k+1;

end

fprintf('6.3^1.7 from tailor series=%6.4f after adding n=%d terms\n',sn,n);

disp('6.3^1.7 using calculator =22.84961748');

Command window:

6.3^1.7 from tailor series=22.8496 after adding n=16 terms

6.3^1.7 using calculator =22.84961748

cheers i hope this helped !!!

You might be interested in
If you want to change the speed of a layer's horizontal scrolling, what should you change?
kirill [66]

Answer: A; X coefficient

Explanation: Hope I helped out !

-Carrie

Ps. it would mean a lot if you marked brainliest

6 0
3 years ago
A counter is a tool used to measure the number of times people visit a Web site. true or false?
Liono4ka [1.6K]

True.

It doesn't measure unique users, so you can just hit refresh and the counter keeps going up...

5 0
3 years ago
Green field country is planning to conduct a cricket match between two teams A and B. a large crowd is expected in the stadium a
Angelina_Jolie [31]

Answer:

We need the Network Interface Card that supports serial transmission, and they are EIA RS-422A and RS-485 interfaces. Always remember that serial transmission is slower than parallel transmission, but they are less noisy as compared to the parallel transmission. In both of these NICs, we can have one transmitter and multiple receivers over a single line. And the length of the line can be as big as 6000 Feet and speed up to 10 MBPS, which is quite good for this question requirement.

Explanation:

Please check the answer.

7 0
2 years ago
How do you mark somebody the brainliest?
Katena32 [7]

when 2 people answer your question, the brainliest button will appear in the spot of the thanks button

Hope This Helps!      Have A Nice Day!!

6 0
3 years ago
Read 2 more answers
Use C++:
AveGali [126]

Answer:

result = pow(10,5);

Explanation:

A complete code in C++ with the necesary header file for the math class is given below:

#include <iostream>

//import the header file to use the power function

#include<cmath>

using namespace std;

int main()

{

   double base = 10.0;

   double result;

  //Use Power function to raise base to power of 5

   result = pow(10,5);

   //print out the result

   cout<<result;

   return 0;

}

5 0
2 years ago
Other questions:
  • :If a process terminates, will its threads also terminate or will they continue to run? Explain your answer.
    14·1 answer
  • 9.1.3: Printing vector elements with a for loop. Write a for loop to print all NUM_VALS elements of vector courseGrades, followi
    5·1 answer
  • How to control what is on the x and y axis in excel?
    13·1 answer
  • A friend of yours started her own dog walking business. At first she only had a couple customers, and she used Word to create al
    8·1 answer
  • Give four examples of devices which are both<br>Input and Output to a Computer.​
    12·1 answer
  • This information is stored in every IP packet to make sure that the packet is eventually discarded if it cannot find the address
    11·1 answer
  • ____ occurs when two nodes simultaneously check a channel, determine that it is free, and begin to transmit.
    9·1 answer
  • _________ is the primary measurement used to gauge your typing ability
    10·1 answer
  • Which ribbon tab is not a default in Outlook 2016's main interface?
    13·2 answers
  • Write a program that takes a string as an input. If the string entered is equal to
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!