MaplePrimes Questions

Hi,  if i have a matrix 4x4 as

A=[I          Y        -X        aX

     bY        Z         o          o

      X^T     O^T     0         0

       o^T  O^T       0         q ]   

I have a non linear Sharpe ratio with 3 portfolio weights w1,w2 and w2. I want to (globally) maximize the sharpe ratio by choosing w1,w2 and w2 subject to the constraints that each of the variables is in the range of 0 to 1, and that their summation is equal to 1. I also want the maximization to start at an initial point of [w1=0.35,w2=0.6,w3=0.05].

The function is:

SR:= (0.012w1+0.007w2+0.0384w3-0.009)/(stdev)

where stdev is the standard deviation of the portfolio ...

#Could you check how to generate a correct plot? I use Sum here because nested add commands didn't work.

restart;
S := proc (x) options operator, arrow; 1+Sum(floor((x/(Sum(floor(cos(Pi*(factorial(n-1)+1)/n)^2), n = 1 .. r)))^(1/x)), r = 1 .. 2^x) end proc;

#This yields the Prime number sequence, try seq(value(S(x)), x = 1 .. 7);

#Problem:

# Plot seems wrong:
plot(S(x), x = 1 .. 7);

#Raising Digits >15 results in empty plots

Can't find what the matter in recursive occurance of this problem. Anyone knows how to sort it out, thanks

k:=20:
m:=4:
p[0] := 1:
tr := 4:

omega[n]:=sqrt(k/m):

T[n]:=(2 pi/omega[n]):

> maxpoint := proc (x)
local tr, p1;

tr := evalf(x*T[n]):
p1 := piecewise(t1 <= tr, p[0]*t1/tr, p[0]):
maximize(int(p1*sin(omega[n]*(t-t1))/(m*omega[n]), t1 = 0 .. t), t = 0 .. dur) :

With(geom3d), equation of  a line has the form a parametric equation. How  i can get canonical equation of a line? Please help me?

Hi everyone, I have a question:

In case if I assign for example:

x:=2:

y:=3:

z:=x+y;

Maple will print (output) solution in form :

                                                  ...

What does error message in Title mean, and how can I cure it? (I cannot copy and paste from my .ws into thie question box).

Best ragards,     Michael Caola

 

I can't write a program to solve the following problem:

The first two terms of a sequence are a1 = 1, a2 = 1/sqrt(3). For n >=1, a(n+2) = (an + a(n+1))/(1-an*a(n+1)). What is a2012?

Hi

I'm working with some rather complicated functions in Maple. They are elements in matrices, and I need to perform mattrix operations on them, as well as integrations. When I try this with my complete functions, Maple locks up. Therefore I am trying to make approximations to some of the functions. The example below shows an example, where the complicated function (green) is denoted theta24. I comvert it to a 5th degree polynomial (red). But the approximation only...

I would see on the monitor the vector n > 10 with all his components, but the output of Maple is always the structure of the vectors.

For example, if I write:

The loading of Facebook plugins really slows mapleprimes down.  Can we get rid of the facebook connections entirely? 

I have also noticed mapleprimes takes much longer to load pages when logged in as opposed to browsing mapleprimes logged out.  Again could be the facebook issue.

Is it possible to paint in black and white colors the cells of 5x5 grid so that each 3x3 square contains exactly 5 black cells and  each 2x4 rectangle (vertical or horisontal) contains exactly 4 black cells? How to answer this with Maple?

Hi, I have a vector with 33 points ####[33x1]Matrix### for example : [43.6, 764,3.85,32.7 .........n]

Each point is at the plotted on the x axis of theha:Matrix([seq((Pi/32)*n,n=0..32)])^%T:   ####another[33x1]Matrix#####

How do I plot first point (0,43.6), second point (Pi/32,764), third point (2Pi/32,3.85) etc...

Please help. Thank you.

Hi,    I have the following    

for i from 1 to 100 do    x[i]:=cos(θ[i]);     y[i]:=sin(θ[i])  end do; 

Now I want to find the first and second derivatives for x[i] and y[i] which are

for i from 1 to 100 do     x1dot[i]:=-sin(θ[i]);     y1dot[i]:=cos(θ[i]); 

                         ...

A very useful feature of the plotting program gnuplot is that you can generate an output which is a file instead of a graph. For instance the following short script

################
f(x)=sin(x)+cos(pi*x)
set samples 5000         
set table "outfile.dat"
plot [0:10][] f(x)
################

produces a  file containing a sampling of the function f(x) on the interval [0,10] based on a grid...

First 1763 1764 1765 1766 1767 1768 1769 Last Page 1765 of 2428