MatLAB | Mathematica | MathCAD | Maple Answers

Questions: 245

Answers by our Experts: 142

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

A= {2,4,6,8};
B= {1,2,3,4};
C= A[1] + B[2];
D= A[2] - B[1];

A[3]= ?
B[2]=?
C=?
D=?
A-B=?
I need this procedure to be written using Maple software:

Write a procedure that takes an input y, which is a quadratic or cubic function, and determines the location and nature of the stationary points.
How to make link between crc generator code and error-detecting code so that it can run smoothly?
For reference, my crc generator code is-
% The program generates CRC code for any given input message stream &
% generator polynomial
%msg=[1 1 1 0 0 0 1 1 ]
msg=input('Input Message sequence :');
%poly=[1 1 0 0 1 1]
poly=input('Input Generator Polynomial :');
[M N]=size(poly);
mseg=[msg zeros(1,N-1)];
[q r]=deconv(mseg,poly);
r=abs(r);
for i=1:length(r)
a=r(i);
if ( mod(a,2)== 0 )
r(i)=0;
else
r(i)=1;
end
end

crc=r(length(msg)+1:end)
frame = bitor(mseg,r)
Lcal variables are variables that are shared ?
UNIX operative system is based on C++ ?
A Matlab program does not need formal compilation?
LINSPACE is used to create a vector with elements equally spaced?
I want some expert who colud tout me how to use classregtree in correct way
Thank you
. Write a script/function that converts a Roman numeral to its decimal equivalent.
There are two distinct situations that you might design your program for:

a. The "old" style where the order of the symbols does not matter. In this case, IX and XI both mean 10 + 1 or 11. You should be able to handle the following conversion table:

Roman Decimal
I 1
V 5
X 10
L 50
C 100
D 500
M 1000

b. The "new" style where the order of the symbols does matter. For example, IX is 9 (10 - 1), XC is 90 (100 - 10). The conversion table given above still holds and you may assume for this case that the only instances of "order" you will encounter are

IV (4), IX (9), XL (40), XC (90), CD (400) and CM (900)

The function input will be useful here. The format

>> str = input('Roman numeral: ','s')

will provide a way to get the Roman number into your program as a string. It would be a good idea to try case a. first.
3. With considering the following algorithm for computing pi:

I. Set a = 1, b = 1/sqrt(2), t = 1/4 and x = 1

II. Repeat the following commands until the difference between a and b is within some desired accuracy:

y = a
a = (a + b)/2
b = sqrt(b*y)
t = t - x*(y - a)^2
x = 2*x

III. From the resulting values of a, b and t, an estimate of pi is

Pi_est = ((a + b)^2)/(4*t)

How many repeats are needed to estimate pi to an accuracy of 1e-8? 1e-15?
1. The Legendre polynomials Pn(x), n = 0, 1, … are defined recursively as follows

nPn(x) = (2n-1)xPn -1 – (n-1)Pn-2(x), n = 2, 3, … , P0(x) = 1, P1(x) = x

a) Write MATLAB function P = LegendP(n) that takes an integer n (the degree of Pn(x)) and returns its coefficient stored in the descending order of powers.
b) Plot all Legendre polynomials Pn(x), n = 0, 1, …,6 over the interval [-1,1] in one figure.
The Pascale triangle holds coefficients in the series expansion of (1 + x)n, where n = 0, 1, 2, … The top of this triangle, for n = 0, 1, 2, is shown here
1
1 1
1 2 1
Write MATLAB function t = pasctri(n) that generates the Pascal triangle t up to the level n.
Remark. Two-dimensional arrays in MATLAB must have the same number of columns in each row. In order to avoid error messages you have to add a certain number of zero entries to the right of last nonzero entry in each row of t but one. This t = pasctri(2).

t =
1 0 0
1 1 0
1 2 1
is an example of the array t for n = 2.
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS