Question

In: Advanced Math

III. Use Table to generate a list of ordered pairs (x,sin x) for x=0, \[Pi]/12, 2\[Pi]/12,...

III. Use Table to generate a list of ordered pairs (x,sin x) for x=0, \[Pi]/12, 2\[Pi]/12, 3\[Pi]/12, ..., 2\[Pi]. You should end up with a list of lists. Then do it again but without using Table.

Mathematica assignment, any ideas?

Solutions

Expert Solution

Using Table function is easy to generate the pairs (x,sin x) for

Open a fresh MATHEMATICA notebook and type in the following command.

All the Table function needs is an expression and the range for that expression to be evaluated. As you can see the expression is the ordered pair (x, sin x) and the range is 0 to 2 with steps of .

And as a result a list of lists with each list representing the ordered pair (x, sin x) has been generated.

The same result can be recreated using defined function and Array which is useful in construction of a list.

Enter the following commands in the MATHEMATICA notebook to get the desired results.

First we have defined the order pair as a function in MATHEMATICA.

Then using this newly defined function plugged into the Array function that generates the function values over the interval 0 to 2 at 25 evenly spaced points which amounts to the same step size as

As we can see the result of this is the same as the one by using Table.


Related Solutions

S(x) is a cubic spline for the function f(x) = sin(pi x/2) + cos(pi x/2) at...
S(x) is a cubic spline for the function f(x) = sin(pi x/2) + cos(pi x/2) at the nodes x0 = 0 , x1 = 1 , x2 = 2 and satisfies the clamped boundary conditions. Determine the coefficient of x3 in S(x) on [0,1] ans. pi/2 -3/2
Let f(x) = sin(x) for -pi < x < pi and be ZERO outside this interval...
Let f(x) = sin(x) for -pi < x < pi and be ZERO outside this interval a. Find the Fourier Transformation. Plot on Desmos. b. Find the Fourier Integral representation of f(x). Plot on Desmos using reasonable limits of integration
USING MATLAB.... a.) Create anonymous functions: fa(x)=sin(x^2) fb(x)=sin^2(x) b.) Evaluate them both at x=1/2 pi c.)Evaluate...
USING MATLAB.... a.) Create anonymous functions: fa(x)=sin(x^2) fb(x)=sin^2(x) b.) Evaluate them both at x=1/2 pi c.)Evaluate them both at x=(0,1,2,...,10)^T d.) Calculate fa(fb(2)) and fb(fa(2))
find the eigenvalues of x"+(lambda)(x) = 0, x(0)=x'(pi)=0
1a.) find the eigenvalues of x"+(lambda)(x) = 0, x(0)=x'(pi)=0 1b.) Solve ut=((c)^2)u(xx) , u(0,x)= alpha * sin x, with the boundary condition u(t,0)=u(t,pi)=0 1c.) Solve ut = u(xx), u(0,x) = alpha * sin ((pi*x)/(L)), with the boundary condition u(t,0) = u(t,L) = 0.
Solve the nonhomogeneous heat equation: ut-kuxx=sinx, 0<x<pi, t>0 u(0,t)=u(pi,t)=0, t>0 u(x,0)=0, 0<x<pi
Solve the nonhomogeneous heat equation: ut-kuxx=sinx, 0<x<pi, t>0 u(0,t)=u(pi,t)=0, t>0 u(x,0)=0, 0<x<pi
1A) Let S be the upward oriented surface of the box [-pi,pi]x[0,pi]x[0,pi]without the face xy plane....
1A) Let S be the upward oriented surface of the box [-pi,pi]x[0,pi]x[0,pi]without the face xy plane. That is, in the standard view, the box has a front and back, a left and right face, a top face, but no bottom face. Let F(x,y,z)=< ycos(z),zcos(x),xcos(y) >. Find the flux of curl F across S directly,  without using stokes theorem. 1B)  Let S be the upward oriented surface of the box [-pi,pi]x[0,pi]x[0,pi]without the face xy plane. That is, in the standard view, the box...
Find the Fourier series expansion of f(x)=sin(x) on [-pi,pi]. Show all work and reasoning.
Find the Fourier series expansion of f(x)=sin(x) on [-pi,pi]. Show all work and reasoning.
Find the real Fourier series of the piece-wise continuous periodic function f(x) = x+sin(x) -pi<=x<pi
Find the real Fourier series of the piece-wise continuous periodic function f(x) = x+sin(x) -pi<=x<pi
y''(t)+(x+y)^2*y(t)=sin(x*t+y*t)-sin(x*t-y*t), y(0)=0, y'(0)=0, x and y are real numbers
y''(t)+(x+y)^2*y(t)=sin(x*t+y*t)-sin(x*t-y*t), y(0)=0, y'(0)=0, x and y are real numbers
(a) Find the Riemann sum for f(x) = 4 sin(x), 0 ≤ x ≤ 3π/2, with...
(a) Find the Riemann sum for f(x) = 4 sin(x), 0 ≤ x ≤ 3π/2, with six terms, taking the sample points to be right endpoints. (Round your answers to six decimal places.) R6 = (b) Repeat part (a) with midpoints as the sample points. M6 = If m ≤ f(x) ≤ M for a ≤ x ≤ b, where m is the absolute minimum and M is the absolute maximum of f on the interval [a, b], then m(b...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT