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
Which directory service software would be used exclusively on a windows network?.
SSSSS [86.1K]

The directory service software that would be used exclusively on a windows network is AD, an active directory service. The correct option is c.

<h3>What is directory service software?</h3>

A directory service is a group of programs and procedures that keep records of data about your business, subscribers, or both.

Microsoft created AD, a directory service solution, specifically for Windows. It offers a user interface for managing shared network objects, including users, user groups, desktop and laptop computers, devices, printers, and services.

Therefore, the correct option is c, Active Directory.

To learn more about directory service software, refer to the link:

brainly.com/question/28110834

#SPJ1

The question is incomplete. Your most probably complete question is given below:

Lightweight Directory Access Protocol (LDAP)

Novell Directory Services (NDS)

Active Directory

Acyclic-Graph Directory Structure

7 0
1 year ago
Consider the following class declarations.
kow [346]
Override only
Reason because the same method speak is in the parent and child class
5 0
3 years ago
If you create a column break, what happens to the text after the insertion point?
Ugo [173]

Answer:

It moves to the top of the next column.

5 0
3 years ago
Whos really watching this guys bruh​
Ivahew [28]

Answer:

Me no

Explanation:

4 0
3 years ago
Read 2 more answers
What is the hamming distance between the following bits? Sent
kirill115 [55]

I think

the hamming distance between the following bits its 5

8 0
3 years ago
Other questions:
  • (Microsoft excel) The data selected to create a table must include
    6·2 answers
  • What is the purpose of a budget
    7·1 answer
  • Suppose the work required to stretch a spring from 1.1m beyond its natural length to a meters beyond its natural length is 5 J,
    14·1 answer
  • An array of Strings, names, has been declared and initialized. Write the statements needed to determine whether any of the array
    9·1 answer
  • PLZZ HELP!! ITS FOR A TEST!! Third generation computers were set apart because of this invention. A) microprocessors B) transist
    12·2 answers
  • Write a Java application that uses the Math class to determine the answers for each of the following: a. The square root of 37 b
    10·1 answer
  • Windows displays a(n)
    11·1 answer
  • When a person bullies someone using technology, it's called:
    9·2 answers
  • What are the functions of the windows button, Task View and Search Box? give me short answer
    15·1 answer
  • Which of the following is an example of effective nonverbal communication?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!