acer

32363 Reputation

29 Badges

19 years, 332 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

@gordon the grey Before we try and figure out how best to make it happen for each such session, what effect did it have in a given session?

I mean, did it have any effect on the copy&pasted (Maple) results that showed up in Matlab, after it was done, in the same Matlab session?

@Ieva I'll see what I can accomplish in Maple 13, possibly this evening.

It seems useful and prudent to me to mention in advance that you're using software that is six major release versions out of date (2009), when asking for a technical solution.

I used Maple 18 when I ran the code I gave (2014).

@Alger Is this close to what you want?


R:=4:

freq:=7:

plots:-display(plot(R,theta=0..2*Pi,color=blue,coords=polar),
               plot(R+1,theta=0..2*Pi,color=gray,coords=polar,linestyle=dash),
               plot(R-1,theta=0..2*Pi,color=gray,coords=polar,linestyle=dash),
               plot(R+cos(freq*theta),theta=0..2*Pi,color=red,coords=polar),
               gridlines=false,scaling=constrained,view=[-R-1..R+1,-R-1..R+1],
               tickmarks=[[seq(-i=i-R,i=0..R+1),seq(i=i-R,i=0..R+1)],
                          [seq(-i=i-R,i=0..R+1),seq(i=i-R,i=0..R+1)]]);

plots:-display(plot(R,theta=0..2*Pi,color=blue,coords=polar),
               plot(R+1,theta=0..2*Pi,color=gray,coords=polar,linestyle=dash),
               plot(R-1,theta=0..2*Pi,color=gray,coords=polar,linestyle=dash),
               plot(R+cos(freq*theta),theta=0..2*Pi,color=red,coords=polar),
               gridlines=false,scaling=constrained,view=[-R-1..R+1,-R-1..R+1],
               tickmarks=[[seq(-i=i-R,i=R-1..R+1),seq(i=i-R,i=R-1..R+1)],
                          [seq(-i=i-R,i=R-1..R+1),seq(i=i-R,i=R-1..R+1)]]);

 


Download polnew.mw

It works OK for me, without any workaround needed, in the 64bit verion of Maple 2015.0 on Windows 7 Pro.

It would be interesting to know whether it's specific to Win8.1, or 32bit Maple, or other.

acer

@Alger Please explain in more detail what you mean.

@Alger I don't see why what I gave does not do what you've asked.

Here below the colors red and blue are switched, as you have them.

You write cos(theta) but perhaps you intend cos(freq*theta), for some freq. You write you want the axis to be at radius R, but your image shows a curve entirely within the circle. That's obtained by just adjusting my code by 1, in the axial direction.

Please explain more, if it wasn't actually what you wanted.

restart:

R:=5:

freq:=1:
plots:-display(

   plot(R,theta=0..2*Pi,color=blue,coords=polar),

   plot(R+cos(freq*theta),theta=0..2*Pi,color=red,coords=polar),

   gridlines=false,scaling=constrained);

freq:=5:
plots:-display(

   plot(R,theta=0..2*Pi,color=blue,coords=polar),

   plot(R+cos(freq*theta),theta=0..2*Pi,color=red,coords=polar),

   gridlines=false,scaling=constrained);

freq:=5:
plots:-display(

   plot(R,theta=0..2*Pi,color=blue,coords=polar),

   plot(R-1+cos(freq*theta),theta=0..2*Pi,color=red,coords=polar),

   gridlines=false,scaling=constrained);

 

 

Download algerplot.mw

@Christopher2222 Yes, that was the first of the three plots I showed by example.

@Kitonum I could be misunderstanding of course, but where the OP wrote ".mw" I interpreted it as meaning a query about behaviour in the Standard GUI (as opposed to .mws which I might interpret as a query about behaviour in the Classic GUI, or both).

Which style: detached, grouped, or stacked?

acer

@mapleatha it worked fine for me, using the Java GUI of Maple 13. Why don't you describe exactly what you're doing, and in which interface and input and output mode, instead of just wasting time?

Here's a screenshot of it working for me in 64bit Maple 13.02 on Windows 7. Earlier in the day it worked for me using 64bit Maple 13.01 for Linux.

@nm Using a DOS window under Windows 7: (This is one long command, of course. I split it across two lines of text here just so that it displays nicely in this post.)

c:\TEMP>"C:\Program Files\Maple 18\bin.X86_64_WINDOWS/cmaple.exe"
         -q -c "print(int(sin(x),x));" -c "quit"

                                    -cos(x)
c:\TEMP>

Using cygwin (and this one also worked using /cygdrive/c/ instead of c: in the fully qualified location of cmaple.exe): (Again, this is just a one-line command.)

$ "c:\Program Files\Maple 18\bin.X86_64_WINDOWS/cmaple.exe"
  -b "c:/Program Files/Maple 18/lib/" -q -c "print(int(sin(x),x));" -c "quit"

                                    -cos(x)

Those worked for me with Maple 2015 as well.

@mapleatha Why are you not updating to the 13.02 point-release?

There is an item "Startup Code" in the "Edit" dropmenu off the main menubar of my 64bit Maple 13.02 running on Windows 7.

What operating system and particular point-release Maple version are you using?

acer

@jockoflocko Ok. So did you configure Maple to find the vcvars64.bat file from the MSVC++ compiler when you installed Maple 17. Or did you instead configure it afterwards, by running the Compiler:-Setup command? Which MSVC++ version did you install, and which Visual Studio version?

It may not be related to your problem, but are you still running Maple 17.00? And if so then have you considered getting the 17.02 update?

By the way in Maple 18 and 2015 the LLVM C compiler comes bundled with the 64bit Maple product itself, on each of the MS-Windows, Linux, and OS X platforms. Hence Compiler:-Compile is ready to go, with no downloads or configuration necessary.

What version are you using? Is it Maple 17?

What operating system? MS-Windows or Linux or OS X? And 32bit or 64bit Maple?

acer

First 336 337 338 339 340 341 342 Last Page 338 of 592