What class is for ? If you tell me I could take out my notes
Answer:
clc%clears screen
clear all%clears history
close all%closes all files
p=250;
M=[];
for i=1:100000
re=0;
S=0;
while(S<=1)
S=S+rand;
re=re+100;
end
M(i)=re;
end
disp('Expected received money is');
mean(M)
disp('Since expcted is greater than what we pay. So, we will play')
Step-by-step explanation:
Step-by-step explanation:
Explanation:
The trick is to know about the basic idea of sequences and series and also knowing how i cycles.
The powers of i will result in either: i, −1, −i, or 1.
We can regroup i+i2+i3+⋯+i258+i259 into these categories.
We know that i=i5=i9 and so on. The same goes for the other powers of i.
So:
i+i2+i3+⋯+i258+i259
=(i+i5+⋯+i257)+(i2+i6+⋯+i258)+(i3+i7+⋯+i259)+(i4+i8+⋯+i256)
We know that within each of these groups, every term is the same, so we are just counting how much of these are repeating.
=65(i)+65(i2)+65(i3)+64(i4)
From here on out, it's pretty simple. You just evaluate the expression:
=65(i)+65(−1)+65(−i)+64(1)
=65i−65−65i+64
=−65+64
=−1
So,
i+i2+i3+⋯+i258+i259=-1
Answer:
(0,2)
Step-by-step explanation:
by substituting 0 for x you can find the y-intercept
f(x)=2*3^x
f(x)=2*3^0
f(x)=2*1
f(x)=2