gkokovidis

2370 Reputation

13 Badges

20 years, 288 days
Draeger Medical Systems, Inc.

 

 

Regards,
Georgios Kokovidis
Dräger Medical

MaplePrimes Activity


These are answers submitted by gkokovidis

I am using Version 10.04 on a WinXP machine, with the Classis User interface. I also tried it with the "non Classic" user interface. ?Optimization or ?LSSolve both of these commands bring up the help page, using the classic user interface. LSSolve can also be accessed as a link under the Optimization help menu. Using the "non classis" UI, it depends on what you have your input style set to. Mine was set to 2D math, and the help commands seemed to work just fine. Hope this helps. Regards, Georgios Kokovidis
It seems that the "GetElement" command is returning a set of values in Atomic Units. They tell you this although it is not clear what exactly "units=u" means. Your calculations are returning a value in SI units. Check to see what you are set to as far as returning default units with the "GetUnit" command. Then you can convert from atomic to anything else to be consistent with whatever units that you are using in your worksheet. > restart: > with(ScientificConstants):with(Units): > GetElement(sodium,symbol,density,atomicweight); > Element(Na,atomicweight); > evalf(%); > convert(%, units,kg,amu); Regards, Georgios Kokovidis
Try this, and remember that in Maple, you want to use Pi (Capital P) instead of pi (Lower case p). > restart: > a:=cos(alpha[1])+cos(alpha[2])+cos(alpha[3])=3*Pi/4; > b:=cos(5*alpha[1])+cos(5*alpha[2])+cos(5*alpha[3])=0; > c:=cos(7*alpha[1])+cos(7*alpha[2])+cos(7*alpha[3])=0; > fsolve({a,b,c}); Regards, Georgios Kokovidis
As an example, I am using the sinc function to illustrate what I think you are trying to do. > restart: > plot(sin(x)/x, x = -5..5, y = -1..1); This will plot the sinc function. > a:=plot(sin(x)/x, x = -5..5, y = -1..1): The above line will assign the plot structure to the variable "a". > points:=op([1,1],a): This will extract only the data from the plot structure. > writedata("C:/temp/plotdata.txt",points,float); On a Windows PC, this will write the data to a file in the C: emp directory called plotdata.txt that you can load into another program. The last option can be changed from "float" to other formats. See ?writedata for more help. Regards, Georgios Kokovidis
From a previous posting, that dealt with a similar problem that you are describing, you might look into the "printlevel" command. Then, in order to print out the final return value, you can use the "print" command for that value of interest. See ?printlevel and ?print for more help > printlevel:=0; Should suppress all printing. Regards, Georgios Kokovidis
A copy of a previous posting that I answered that might be similar to what you are trying to do. Below is an animation sequence using some data that I typed in. I used plot multiple times and then the display command to animate. The key is the insequence=true parameter. ?insequence for more help. Once the plot is created, click on it. This will change the top of the Maple command window gui and allow you to click on the "play" button, similar to a tape deck. You can also control the speed of the animation as well. You can also "right click" on the plot and go to "Animation" and then "Play". > restart: > with(plots): > a:=plot([[1,0],[1,1]]): > b:=plot([[2,0],[2,1]]): > c:=plot([[3,0],[3,1]]): > d:=plot([[4,0],[4,1]]): > display(a,b,c,d,insequence=true); Good luck with your data. Regards, Georgios Kokovidis Dräger Medical
> restart: > a:=expand((x+1)^7*(x-2)^9); > asc:=sort(a,x,ascending); > des:=sort(a,x,descending); Regards, Georgios Kokovidis
Take a look at the attached file. It shows one of the intersecting lines. Good luck with the other one. Regards, Georgios Kokovidis Download 221_parametric.mws
Try the "unassign" command if all you want to do is clear some variables. Regards, Georgios Kokovidis
If you have Matlab on your machine and the command > with(Matlab): from the Maple prompt works, then you can use the setvar command to transfer data to the Matlab environment. For example, in Maple I have: > X(100):=0.3685; The the following command will transfer this to Matlab. > setvar("X_100", X(100)); Now from the Matlab prompt I type: >> who Your variables are: X_100 Then at the Matlab prompt I type: >>X_100 X_100 = 0.3685 Regards, Georgios Kokovidis
Example below using rhs to extract the solution and plot it. > restart: > diff_eq:=diff(y(x),x)=cos(x); > ysol:= rhs( dsolve({diff_eq,y(0)=0}, y(x)) ); > plot(ysol,x=0..5); Regards, Georgios Kokovidis
> restart: > with(plots): > with(plottools): > p1:=polygon(([[0,0], [3,4], [3,1]]), color=black): > p2:=textplot([2,2,"Polygon"],color=white): > display(p1,p2); Regards, Georgios Kokovidis Dräger Medical
The code below is an attempt to do what you are looking for. Substitute your function that you are looking to expand. > restart: > with(numtheory): > cfrac((sqrt(61)),'periodic'); > ans:=cfrac((sqrt(61)),'periodic','quotients'); > op(2,ans); > nops(%); Regards, Georgios Kokovidis
There is an example on mapleprimes that reads in an image called galileo.jpg The code below assumes that this file is stored in the folder C: emp. On a Windows machine, this is the code that allows you to read in this file and manipulate it. > restart: > with (ImageTools): > img := Read("c:\temp\galileo.jpg"); Notice the use of the \ and "". This allows you to navigate to any folder on your drive. Good luck with your image. Regards, Georgios Kokovidis
Replace your call to "int" with a call to "Int". Just change the the small i to a capital I. That will return the solution your are looking for. Regards, Georgios Kokovidis
First 70 71 72 73 74 75 Page 72 of 75