yellowcanary

35 Reputation

4 Badges

10 years, 118 days

MaplePrimes Activity


These are replies submitted by yellowcanary

@acer Thank you so much. That was exactly what I wanted to plot.

YC

@Rouben Rostamian  Hello. Thank you. I tried but I receive "Unable to parse"error. What does the code below do exactly?

T := (x,y) -> piecewise(y>x, [(x+y)/2,(x+y)/2], [x,y]):

@tomleslie Thank you. This works. But I still got the part of the green function over y=x line. How can I see only the function under this line?

 

YC

@gkokovidis thank you for the reply. The problem is when I change the parameters (wt := 4; ut := 3; ct := 2; st := 1; pt := 7), the function moves above the y=x  or y=0line. I want to see the part of the function between y=x and y=0 lines.(in the triabgular area). In this region, P[B]>P[A] and I am only interested in to see the values of the two function plots in this region. Is it possible to do that?

 

YC

@tomleslie 

Thank you for your help and comments.

Best

@tomleslie 

Thank you again. I have been trying to plot what I want more than 3 month but still dont know how. Funny right?

First of all, I am not very good at maple and when I try I get error all the time. When I click on error and go to online help, I get this message most of the time: There is no help page available for this error.

I tried what you said and typed  scaletorange =  -1.0e-06..1.0e-06; and get an error. Made search but there is not enough help in their manual.  I dont want to blame this company but MATLAB is much stronger and it has perfect help for beginners. 

@tomleslie 

Hello. Thank you for the reply. Yes, I want a 2D plot. The third dimension might be color or something else that is good to understand the behavior of the two functions at different regions. All I want to show is that, the areas where a function returns a higher value. For example, There are 1275 combination of P[A] and P[B], assuming that P[B]= 0 ..0.50 and P[A]= 0 ..P[B]-0.01. (increments  of 0.01)  For instance, If Profit[1] greater than Profit[2] when P[A]=0.10 and P[B]=0.20 that point or region will be red (representing Profit[1] ). When I move one step up where  P[A]=0.11 and P[B]=0.20 and if Profit[2] is higher this time that region will be green. So, I can distinguish easily which function is better in what region.  I prefer that rather than taking the difference of the two functions. Is it something doable on maple?

I am trying to find a solution for a long time an d I really need it. Thank you so much.

 

YC

 

@tomleslie 

Hello. Thanks for the answer. The thrid dimension is Profit[1] or Profit[2]. So, I need to show them in colors like the highest one is gonna be red and lowest one green, for example.

@tomleslie 

Thank you. I wanted to add color plots. It seems better now. Do you have any idea about formatting the plot for the research paper? I want it to be very clear to understand by readers.

@Rouben Rostamian  

Thank you. It worked as I want.

@tomleslie 

I mean do you know other alternative plots to show these data? I want to be as clear as I can. So, people will get the idea when they look at the plot.

@tomleslie 


Thank you. This is a good 3D plot. I want to put some plots to my research paper. I wonder if there are another graph options which is easier to understand for the readers?

@Carl Love 

Hello. Yes, I want to make a numerical comparison at this time. I proved that each function might give higher result depending on the value of variables. I can't say one of them is always better than other. By better, I mean higher value. 

Here, I can assume four of the variables are constant (p,w,wu, and c), provided that p>wu>w>c.

So, I have 4 variables left (Pa,Pb,Ha,Hb).

You said there are numerious ways to make a numerical comparison. Could you please give some examples?

Also, it would be nice to compare the functions under the conditions above. However if it is still so difficult, we can assume Pa and/or Pb constant. And Ha and Hb vary.

I revised data file and upload it again.  Thank you,

YC

data1.mw

@Carl Love 

Thank you , Carl Love. I fixed the problem by addding "*". Could you please explain when should I use 2D input? I dont know the difference between 1D input and 2D input in maple.

 

 

@tomleslie 

Thank you. I fixed the problem,as you said, I add * between PB and (p-w). Now it works as I wanted.

To upload the code, should I save it in a word file and upload then? There is a option that convert 1-D math also. It gives the code below.

delt = (P[B]*(p-w)/(1-P[B])-c)*H[B]+(w-P[B]*(p-w)/(1-P[B]))*H[B]*P[B]+w[u]*P[A]*(1-P[B])*H[A]-(P[A]*(w[u]-w+P[B]*(p-w[u]))/(1-P[A])-c)*(H[A]+H[B])-(w-P[A]*(w[u]-w+P[B]*(p-w[u]))/(1-P[A]))*(H[A]*P[A]+H[B]*P[B]);

 

1 2 Page 1 of 2