MaplePrimes Questions

Hi everybody 

l I tried to install Maple 2018.2 on the golden master of Catalina and it didn't work : the installation process ended after the entering of the password to authorize the installation. In fact Maple 2018.2 still contains 32 bit elements. Is there a solution ? Thank you


 

David

 

Say you have your data, a list of coordinates as,

d1 := [[3, 11], [4, 6], [5, 8]]

Where the goal here is to take the x-coordinate, subtract that by two, then add all the subtracted coordinates together, basically,

(3-2)+(4-2)+(5-2) = 6

 

I would like to write a procedure to do this, my template done to the best of my maple knowledge below:

f2 :=proc(dat::list)

for i from 1 to nops(dat) do 
val1:={{ PULL data[i,1]}}  
sub2 :=val1-2 

{{add sub2 to new 1 D array}}   

end do;  

{{sum array}}  
end proc

The '{{ }}' brackets indicate that I have no idea how to do that function. Basically, I need to pull each x-element, subtract it by 2, add to a new list, and sum the list.

 

I would be grateful for any help, thanks!

 

Second terms coefficient = 2/3*x when (....)^2

9/16*x^2 when (...)^3

64/125*x^3 when (...)^4

625/1296*x^4

Which Bernstein has these result?

Which limit function of x^n = (n^(n-1))/((n+1)^(n-1))*x^(n-1)?

how to find and calculate?

 

 

I have a simple plot showing a quantity against another. The vertical axis values happen to be relatively large integers (tuning words for a direct digital synthesizer, if anyone cares). In the plot pasted-in below this would be W. Maple insists plotting these in scientific notation with 5 or so digits. Is there any way to force the vertical axis to show labels in integers? I scoured the docs for this but came up empty. To be clear, Maple does the right thing in 99% of all cases, is just that these tuning words are integers so the scientific expression makes no sense here. Plotting the equivalent Hex value would also be acceptable, except that I don't know how to do that either.

Thanks,

Mac Dude

I have a dual boot mac book (so a mac book air with windows mode). I am trying to get my answer displayed inline (so the alt+enter on a normal windows computer), but I cant figure out how to do it on mine (since the alt+cmd+enter also doesnt work). Does someone have a solution for me? 

Thanks in advance 

Hello

l'm on here with yet another optimization problem...

Wanting to know if I can get the same results as Samir using DirectSearch package. After 2.2.2

https://www.maplesoft.com/applications/view.aspx?SID=140702

Omega_Ratio_Optimiza_DS.mw

How do I draw three vectors on the same axis of coordinates, I see this vector appear after the previous vector one second  and on the screen when this vector appears, the previous vector remains on the screen and on the last screen I see all three vectors with the Maple command?

Example : plottools :- arrow( [1, -2], [4, -1], 0.001, 0.05, 0.1), plottools :- arrow( [-1, 3], [2, 1], 0.001, 0.05, 0.1), plottools :- arrow( [0, 2], [-3, 0], 0.001, 0.05, 0.1).

Thanks so much for the help of everyone!

Hi,

    This is not an answer. I can't ask question, since I can't add any 'tags'! This problem appeared long time ago, but I hadn't solved it until now. So I ask here.

    I have a question about the function coeffs(). I don't know why it cann't get coefficients for me.

question.mw

Thanks.

Variable disappear after read file and then pass parameter to create thread

 

I have a question about animating 3d space curves (vector-valued functions). I have a curve that has a component x(t), component y(t), component z(t), and a time, t. The problem says to create an animation of a point moving around the curve. How do I do this?

Thank you.

first I define some constants (note I may change the constants later based on the context of the application)

p_l := 10^(-15);     
epsilon := 1.09*10^(-10);
p_B := 1.09*10^(-8);

n_A := 10^7;         
k_A := 0;
n_B := 10^8; 
k_B := 0;

then I define a function l(x,y):

l := (x, y) -> x^k_A*(1 - x)^(n_A - k_A)*y^k_B*(1 - y)^(n_B - k_B)

Now I use both with(GlobalOptimization) and with(Optimization) to maximize l(x,y) give some constraints and I get:

GlobalSolve(l(x_1, y_1), x_1 = p_l .. epsilon, y_1 = p_B .. 1, maximize, initialpoint = [x_1 = 0, y_1 = 0]);
  [-0., [x_1 = 1.09000000000000 10^(-10)   , y_1 = 0.633548870211381]]


Maximize(l(x_1, y_1), x_1 = p_l .. epsilon, y_1 = p_B .. 1, initialpoint = [x_1 = 0, y_1 = 0]);
 [0.33621648834727435318,  [x_1 = 1.00000000000000 10^(-15)   , y_1 = 1.0900000000000000000 10^(-8)  ] ]

 

Clearly the second answer is right and the first is wrong... I am not sure why the ``global optimazation'' is doing worse than the normal and free ``optimazation''.. Am I using the GlobalSolve in a wrong way??

A warm greeting for everyone

I have a function in one variable r defined in spherical coordinates f(r)=r^2+1.
I want to getting field plot or gradient plot for this function in spherical coordinates: 0<r<1,  0<theta<Pi/2 and 0<phi<2Pi.
is there any suggestion

Amr

 

Hi, for each region shown in the figure, there is a single point. I want to define the location constraints of the point in each region

e.g. for region 1 and 5, it is easy to define:

R1 := {p_B <= y_1 <= 1, p_l <= x_1 <= epsilon}

R5:={y_5 <= x_5, p_l <= x_5<= epsilon, p_l <= y_5 <= epsilon}

but what about region 2? it seems wrong if I define like this in maple:

R2 := {epsilon <= x_2 <= p_B, p_B <= y_2 <= 1} union {x_2 <= y_2, p_B <= x_2  <= 1, p_B <= y_2 <= 1}

Or it is actually right....

Hello people in mapleprimes,
I have a question.

I use maple2019 with mac os 10.14.6.

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.14.6
BuildVersion:	18G95

With maple2019, errors appears.

> kernelopts(version);
        Maple 2019.1, APPLE UNIVERSAL OSX, Jun 6 2019, Build ID 1403154

> assume(a>-1,b>0);
> additionally(a<=1);
> about(a);
Originally a, renamed a~:
  is assumed to be: FAIL

> assume(tau<1,tau>0,s<1,s>0):
> a_e1:=tau*s*(1+tau)<tau*s+tau+s-1:
> b_e2:=expand(lhs(a_e1)-rhs(a_e1))<0:
>  b_e3:=collect(b_e2,s,factor):
> solve(b_e2,s) assuming tau<1;
Error, (in assuming) when calling 'property/ConvertProperty'. Received: 'FAIL
is an invalid property'

On the other hand, with maple2018, they do not.

> kernelopts(version);
       Maple 2018.2, APPLE UNIVERSAL OSX, Nov 16 2018, Build ID 1362973

> assume(a>-1,b>0);
> additionally(a<=1);
> about(a);
Originally a, renamed a~:
  is assumed to be: RealRange(Open(-1),1)

> assume(tau<1,tau>0,s<1,s>0):
> a_e1:=tau*s*(1+tau)<tau*s+tau+s-1:
> b_e2:=expand(lhs(a_e1)-rhs(a_e1))<0:
> b_e3:=collect(b_e2,s,factor):
> solve(b_e2,s) assuming tau<1;
                                    1
                               [{-------- < s~}]
                                 1 + tau~

Are errors due to some bugs in maple2019 when being used with mac os 10.14.6?

Take care.

taro

First 644 645 646 647 648 649 650 Last Page 646 of 2434