<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>
Answer:
See Explaination
Explanation:
m=int(input("Please specify the number of elements in first list : "))
n=int(input("Please specify the number of elements in second list : "))
m1=1
list1=[]
n1=1
list2=[]
while m1<=m:
r1=int(input("input element {} of list1: ".format(m1)))
list1.append(r1)
m1+=1
while n1<=n:
list2.append(int(input("input element {} of list2: ".format(n1))))
n1+=1
def Intersection(list1,list2):
return set(list1).intersection(list2)
print("The intersection of two lists is {}".format(Intersection(list1,list2)))
Answer:
It focuses on one task and has no self awareness
Answer:
The correct answer to the following question will be "Ribbon".
Explanation:
- In the configuration of the computer interface, the ribbon is indeed a graphical controlling feature in the format of a series of toolbars mounted on several tabs. The standard ribbon layout requires large toolbars, loaded with graphical keys, tabbed as well as other visual control features, organized by feature.
- The aim of the ribbon should be to provide quick and easy access to widely used activities for each system. The ribbon is therefore tailored for each task and includes program-specific commands. Besides, the top of a ribbon contains multiple tabs that can be used to disclose various groups of commandments.
Therefore, Ribbon it the suitable answer.