MaplePrimes Questions

How do I add constants in a new package under an existing one?

For example, I want to add a new package named Astronomy under the Scientific constants package that contains more solar system data ie M[Jupiter], M[Saturn] etc...  or is it better to create the new package by itself?  How?

I'm trying to have Maple automatically assign values to variables that are given in a list.

This is my function:

optp:=Maximize(F(w1,w2,w3))

optp:=[0.345,[w1=0.05,w2=0.6,w3=0.35]]

Now how do I get Maple to automatically assign w1,w2, and w3 to the values given in the output?

I tried this code:

w1:= optp[2][1];

Does anyone know what the beneath error stated after the following coding means, can't find
the solution,
Although looked in mapleprimes site, and thanks for Joe Riel who pointed out the same problem in
2010,2 June...
But, it seems there is still no vivid solution for such problem, how to follow


k:=20:
m:=4:
p[0] := 1:
tr := 4:
frame:=100:
omega[n]:=sqrt(k/m):
T[n]:=(2 pi/omega[n]):

Hey everyone,

   When I type ?command to view help pages, Maple always says "No Matches Found." For example, when I enter the command ?plot to bring up a help page on plots, Maple will say "No Matches Found."

How do I obtain the Maple help files?

Problem. write the equation of the line cut the two lines d1: x = 2*t, y= -t+1, z = t-2, d2: x = -1+2*m, y = 1+m, z = 3 and perpendicular to the plane 7*x+y-4*z=0. 

This is my code. 

> restart;with(geom3d):

with(LinearAlgebra):

a:=[2*t,-t+1,t-2]:

b:=[-1+2*m,1+m,3]:

line(d1,a,t):

line(d2,b,m):

 Hi 

I am usign dsolve for maple to give my a fuction z(t) . Maple solves the differential equation but i want maple to give me the exact number for specific t values z(60) and so on. But maple is given as an answer z(60) and not a number 

Problem. write the equation of the line cut the two lines d1: x = 2*t, y= -t+1, z = t-2, d2: x = -1+2*m, y = 1+m, z = 3 and perpendicular to the plane 7*x+y-4*z=0. 

This is my code. 

> restart;with(geom3d):

with(LinearAlgebra):

a:=[2*t,-t+1,t-2]:

b:=[-1+2*m,1+m,3]:

line(d1,a,t):

line(d2,b,m):

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?

First 1768 1769 1770 1771 1772 1773 1774 Last Page 1770 of 2434