Posts

Summation with independent variables as different sized arrays in matlab

Image
0 I am new to matlab and am learning it on my own. I am trying to solve and graph the following summation in matlab t = [0:.05:60] y = [0:1:100] u = symsum(sin(((n*pi)/h)*y)*(-((2/(n*pi*rho))*(cos(n*pi)-1))*((P1/((mu*(pi^2)*(n^2))/(h^2)))*(1-exp(-((mu*(pi^2)*(n^2))/(h^2))*t))+P2*((((mu*(pi^2)*(n^2))/(h^2))*(cos(omega*t)-exp(-((mu*(pi^2)*(n^2))/(h^2))*t))+omega*sin(omega*t))/(((mu*(pi^2)*(n^2))/(h^2)))^2+(omega^2)))),n,1,10) All of the other variables in the sum are numbers. However, I keep getting the following errors: Error using symengine Dimensions do not match. Error in sym/privBinaryOp (line 1002) Csym = mupadmex(op,args{1}.s, args{2}.s, varargin{:}); Error in * (line 315) X = privBinaryOp(A, B, 'symobj::mtimes'); How do I correct my code to run correctly? ...

Let $int_0^1 p(x)q(x)dx$ be an inner product. If $f(p(x)) = p'(-15) +8p(-1)$ is a functional, find $r(x)$...

Image
1 Let $langle p,q rangle = int_0^1 p(x)q(x)dx$ be an inner product on $mathbb{P}^2$ . If $f(p(x)) = p'(-15) +8p(-1)$ is a linear functional, find the unique $r(x)$ such that $f(p(x)) = langle p,rrangle $ for all $p(x)in mathbb{P}^2$ . Note that $mathbb{P}^2$ is the space of polynomial of degree less than two. I know that this problem is an application of the Riesz Representation Theorem, but I can't seem to solve it. So far, I found an orthonormal basis for the space and tried to write $r(x) = sum_{n=1}^2{f(b_i)b_i}$ where $B_perp = {1,12x-6}$ , but the answer I got was incorrect. Suggestions? linear-algebra functional-analysis share | cite | improve this question ...