gkokovidis

2370 Reputation

13 Badges

20 years, 289 days
Draeger Medical Systems, Inc.

 

 

Regards,
Georgios Kokovidis
Dräger Medical

MaplePrimes Activity


These are answers submitted by gkokovidis

Version 10 of Maple supports Code Generation for Matlab. What version of Maple are you using? > with(CodeGeneration): > cs := [s=1.0+x, t=ln(s)*exp(-x), r=exp(-x)+x*t]: > Matlab(cs, optimize); s = 0.10e1 + x; t1 = log(s); t2 = exp(-x); t = t1 * t2; r = t2 + x * t; Regards, Georgios Kokovidis
At the maple prompt, type the following: >?CodeGeneration/Matlab Regards, Georgios Kokovidis
See the link below from a previous post. http://www.mapleprimes.com/forum/print_dsolve_numeric_result_to_file Regards, Georgios Kokovidis
I prefer the classic interface because that is what I am familiar with. I have been using it for years, and I am comfortable with the syntax. Maple 10.04 makes no difference for what you are doing relative to Maple 10.05. I prefer to use the latest version because it usually incorporates bug fixes that might make a difference to what I am doing. For the range variable, I started with your numbers and I noticed a very small red line at the origin. Then I started to make the end value smaller and smaller until I got the graph that looked like the expected result. Overall, if I know what the constants are, I define them up front, so that there is no discrepancy later as to what I want for a particular value. Overall, I think you did a good job. Sometimes a small error up front will make the rest of the worksheet very difficult. Try to break the problem up into smaller parts, plug in some numbers to see if it works, and then move on. The more you practice the better you will get at it. Regards, Georgios Kokovidis
Using the Classic Interface, Maple 10.05 on WinXP > restart:with(plots): > h:=6.62606876*10^(-34); > c:=2.99792458*10^8; > T[1]:=5800;T[2]:=5000;T[3]:=4500; > k:=1.381*10^(-23); > L[1]:= ((8*Pi*h*c)/(lambda^5))* ( 1 / (exp((h*c)/(lambda*k*T[1]))-1 )); > L[2]:= ((8*Pi*h*c)/(lambda^5))* ( 1 / (exp((h*c)/(lambda*k*T[2]))-1 )): > L[3]:= ((8*Pi*h*c)/(lambda^5))* ( 1 / (exp((h*c)/(lambda*k*T[3]))-1 )): > p1:=plot(L[1],lambda=0..0.000003): > p2:=plot(L[2],lambda=0..0.000003,color=green): > p3:=plot(L[3],lambda=0..0.000003,color=blue): > display(p1,p2,p3); I believe that the plot is what you are looking for. You can add more values for Temperature to create extra lines in the plot if you like. Regards, Georgios Kokovidis
How about using the assume facility and asking whether or not the inequality is true or false. > assume(x>0,y>0); > is(x>=2*y); false > assume(x>0,y=0); > is(x>=2*y); true Regards, Georgios Kokovidis
Try downloading this file and see if it does what you are expecting. View 221_Plotting Attempt 13-Oct-06-1.mw on MapleNet or Download 221_Plotting Attempt 13-Oct-06-1.mw
View file details Regards, Georgios Kokovidis
Check out Joe Riel's blog on MaplePrimes. Search for Sudoku on MaplePrimes. Below is a link for Prof. Doron Zeilberger's site at Rutgers University with a couple of programs. http://www.math.rutgers.edu/~zeilberg/programs.html Regards, Georgios Kokovidis
Look at the Maple help files for inequalities: >?plots/inequal >?solve/ineqs Example below with what I think you are trying to do. > restart: > with(plots): > inequal({x>=2*y, x>0, y>0},x=-10..10, y=-10..10, optionsfeasible=(color=red), optionsexcluded=(color=cyan), optionsclosed=(thickness=2)); Regards, Georgios Kokovidis Dräger Medical
Try this as a simple modification to your original code posted above: > restart: > a:=1:b:=-3:c:=2: > y:=a*x^2+b*x+c: > z:=factor(y): > z; Regards, Georgios Kokovidis Dräger Medical
> p1:=exp(-Pi*((y-3)/(1/3))^2); > plot(p1, y = -10..10); The only difference between what I did and what you did is the "Pi" vs. "pi". To see what I mean by this do the following, and it will become clear: > evalf(pi); > evalf(Pi); As you can see from the results, "pi" is not represented by a numeric value. Regards, Georgios Kokovidis
I have a folder with a number of old Maple (V R3) worksheets with a .ms extension. I can open them in Maple 10 without any problems. This is what happens when I do this. Within Maple, when I click on the file to open it, I get the following warning: "This worksheet contains elements that are not supported on this platform. Your worksheet may be incomplete." I just click the OK button at this point. Then I get the following message. "This worksheet was created with Maple V Release 3, ..." I click the OK button again and the worksheet opens up. At this point I can try to execute it, but since some of the commands are not supported, it may not work as intended, but at least I can see the commands and replace them with ones that I know will work. Regards, Georgios Kokovidis Dräger Medical
> a:=(x+2*y=0, x+4*y+3*z=5, x+y+z=0); > a[1];a[2];a[3]; This is somewhat a crude way to do this, but it might get you there. Regards, Georgios Kokovidis
This is how Maple handles exponentials involving "e". You have to use exp(function), and Maple returns the character "e" raised to your function. You can cut and paste the result with the character "e" into the next line, and Maple will paste it as exp(result). This hold for Pi as well. If you use Pi in your expressions, you will get the Greek character for Pi. If you cut and paste the expression with the Greek character into the next line, it will be pasted as Pi, not as the actual character. I am using the classic interface, version 10.05, not the Maple 10 interface, version 10.05. Regards, Georgios Kokovidis
This is not a problem localized to fopen. Any command that reads or writes a file will give this error based on how the path is defined. The extra slash should do the trick. INP := fopen("C:\\Documents and Settings\\dhalpern\\My Documents\\data1.txt",READ,TEXT); Single forward slashes should work as well, but I prefer the above because it resembles the standard PC type slashes for a prompt. Regards, Georgios Kokovidis
First 68 69 70 71 72 73 74 Page 70 of 75