tomleslie

13836 Reputation

20 Badges

14 years, 358 days

MaplePrimes Activity


These are answers submitted by tomleslie

using the InertForm() package as shown in the attached

inForm.mw

can only be used to create a vector field from a scalar function.

I think that the "Gradient" of a vector field would be a tensor. As far as I am aware no Maple package supports this

By default (and unless you have switched it off) Maple will produce a "backup" about every 15minutes. I'm pretty sure backups are turned off whilst Maple is busy executing something - so how lucky you get will depend on relative timing of when you made the changes, when the last backup took place, and when you started the evaluations

Location may vary a little, but on a Windows 7 PC this backup directory is usually located at

C:\Users\yourUserName\maple\Backup

You could also try (from the menus) File->Restore Backup, which will pop up a browser of backup files

reading the Maple help?

You state

How to change or control axis style mean style like bold, colour change etc?

So maybe if you read the page on ?Plot Axis Options, which states

The axis and axis[dir] options allow you to provide information about one or more axes to plotting commands such as plot and plot3d. The information may include, for example, the axis color, locations of tickmarks and gridlines, and use of logarithmic scaling.

And you state

How to change or control the font, colour and style of numbers written automatically by maple while plotting on the axis (x-axis, y-axis)?

So maybe if you read the plot/options page, particulary the "axesfont" section, you would be able to work this out

And you state

How to change the font, style and colours of labels?

So maybe if you read the plot/options page, particularly the "labelfont" section, you would be able to work this out.

This site is not a substitute for your inability to read!

A couple of excerpts from the help for the sum() command - emphasis added

The sum command (sum) is for symbolic summation.

To add a finite sequence of values, rather than compute a formula, use the add command.  For example, add(k, k=0..9) returns 45.  Although the sum command can often be used to compute explicit sums, it is strongly recommended that the add command be used in programs if an explicit sum is needed, in particular, when summing over all elements of a list, Array, Matrix, or similar data structure.

In your case using add() just makes everything "work"
addNotSum.mw

the whole issue of whether 'solution' contains an indexed varaiab (ie t[3] ) or a variable with an inert suffix (ie t__3 ), by using indets(solution) to determine the variable name, as in the attached

badSuffix.mw

is a command in the plots() package, so you have tue either the longfirm version of the command, ie plots:-display(), or load the whole plots() package using with(plots) - see the attached.

Note - so far as I can tell your plots p2 and p3 are identical so I change the line thickness on one of them just so that it more obvious that they overlaying.

Don't know exactly what you mean by a phaseportrait for this expression. "Normally" a phaseportrat would be associated with the solution of a (first-order) differential equation, which could be done with DEtools:-DEPlot() or DEtools:-phaseportrait(). I just don;t see how it applies  for your case. So you are going to have to specify exactly what you mean by a "phase portrait graph" - like what variables are on what axe?, and what is the function to be plotted?

disp.mw

for something like the attached, perhaps?

oddPlot.mw

As a general rule, I wouldn't do this in this manner for a couple or reasons, which are

  1. Don't generate data in a crap format, then attempt to fix it!. Generate the data in a simple-to-read format in the first place
  2. Don't use Maple as a text editor. If you have to generate data in a crap format, then it is (probably?) easier to use a decent programmer's editor to convert it to a simple-to-read format

Having got that off my chest, the attached is clunky, but it works. All data is stored in an Array. Each entry of the Array is a five-element list. The first four elements of the list are the requested info from the header for a particular dataset. The final entry in each list is a matrix containing the x-y data for that dataset.

In the attached I have used

fname:="C:/Users/TomLeslie/Desktop/2011068_2_ex.txt":

You will have to change this line so that the path corresponds to wherever you have the file stored on your machine.
readData.mw

you will have to place it "manually" using a textplot3d() command, as in the attached.

sinFun.mw

have to "assume" that t>0, as in the attached
assum.mw

the DirectSearch() package - an add-on available from the Maple Application Centre. I am however very doubtful about the actual success of any optimization package on a function which appears to have many, many local minima and maxima.. Contary to popular belief no optimisation algorithnm is capable of finding a global minimum (or maximum) for anything other than convex objective functions.

So for what iis worth you can check out the attached. NB you will not be able to execute this worksheet unless you have the DirectSearch() package installed, so treat the atached as read-only.


toughOpt.mw

@zenterix 

You state

The documentation seems like a big reference manual.

Yes the documentation is a big reference manual. However it also contains a lot of "getting started" info. In fact if you just use the menus Help->Maple Help, this will open the built-in Maple help, and the first section in the in the Table of Contents pane on the left-hand side is labelled "Getting Started" The help page displayed states (amongst other things)

Manuals
• The User Manual covers an introduction to the Maple interface and the basics of using the Maple programming language.
• The Programming Guide covers introductory, intermediate and advanced programming techniques in the Maple programming language.


Both the User Manual and Programming Guide are available as PDF downloads at the Maplesoft online documentation center.

From this starting help page, you can access the User Manual in an (executable) worksheet and work your way through Maple basics. In PDF format, this manual is about 350 pages - and by the time you have finished reading it, you will have an understanding of Maple basics. The Programming Guide is when things get serious! In pdf format about 650 pages on how to write Maple programs.

You also state

Take the documentation on the Grid package. It lists out the 18 commands in the package. Am I supposed to go through all of the 18 to find out how this package is usually used? 

No probably not! Try reading Chapter 15 Parallel Programming of the Programming Guide , which serves as an introduction to both the 'Threads' and 'Grid' models for parallel programming. This covers the basic commands in both packages in a "didactic" fashion

You further state

Have a look at this page, for Grid:-Run. This page is seemingly abandoned. The formatting of the page runs way to the right. Someone didn't care at all about the reader of this. Like, is this command so unimportant that no one cares to maintain the documentation page for it?

The equivalent page in the built-in help looks absolutely fine - why would uou use on-line help rather than built-in?

The expression you waant to plot, assigned to the upper-case Greek letter Nu (which confusingly looks like an upper-case Roman N), does not depend on your plotting variables , y or N. This expression also does not contain the variable 'x', so why substitute for it?

Thus your 2D plots will be three horizontal lines (nothing varies with 'y') and your 3D plots will be three horizontal planes (nothing varies with either 'y' or 'N' ),

Can one combine these 2D and 3D plots? - Yes, see the attached: but what is the point?

oddPlot.mw

For some reason this worksheet won't display inline here, so you will have to download to examine

logical and syntactical errors in the garbage code which you provide that I doubt anyone could either

  1. fix the garbage
  2. even figure out what you actually want

The attached may be what you are trying to produce, although I had to make so many guesses that I seriously doubt it

  restart:
  with(plots):   
  with(geometry):   
  _EnvHorizontalName := 'x':
  _EnvVerticalName := 'y':  
  EQ := proc(M, N)
             return ((y - M[2])/(x - M[1]) = (N[2] - M[2])/(N[1] - M[1])):
        end proc:

  a := 7:  b := 5:  
  c:=sqrt(a^2-b^2):
  t:= (3* Pi)/(4):    
  ellipse(el,x^2/a^2 + y^2/b^2 - 1 ):
  point(M1, a*cos(t), b*sin(t)):  
  point(F1, -c, 0):
  point(F2, c, 0):    
#  line( L1, [F1, M4]):    
  line( L1, [F1, M1]):

#  point(M1, a*cos(t),b*sin(t)):  
  EQ([a*cos(t),b*sin(t)],[-c,0]):  
  solve(`%`,y):
  m:=coeff(`%`,x):   
  line(L3,y=m*(x-c)):
  op(solve({x^2/a^2 + y^2/b^2 - 1 =0, y=m*(x-c)},{x,y},explicit)[2])[1]:
  xM2:=rhs(`%`):  
  op(solve({x^2/a^2 + y^2/b^2 - 1 =0, y=m*(x-c)},{x,y},explicit)[2])[2]:
  yM2:=rhs(`%`):  
  point(M2,xM2,yM2):
  line( tang1,x*xM2/a^2 + y*yM2/b^2 = 1):  
  intersection(C1,L1,tang1):  
  line(L4,[F1,M2]):
#  C1:=[ HorizontalCoord(C1), VerticalCoord(C1)]:
#   F1:=[-c,0]:
#  M2:= [ HorizontalCoord(M2), VerticalCoord(M2)]:
  triangle(T1, [C1,F1,M2]):
  display
  ( [ textplot
      ( [ [ -c, 0, "F1"],
          [ c,  0, "F2"] ,                         
          [ coordinates(M1)[], "M1"],                          
          [ coordinates(M2)[], "M2"],                         
          [ coordinates(C1)[], "C1"]
        ],
        align={"above",'right'}
      ),
      draw
      ( [ el(color=red),
          M1(color=black,symbol=solidcircle, symbolsize=16),
          M2(color=black,symbol=solidcircle, symbolsize=16),                      
          L1( color=black),
          L3(color=green),
          L4(color=green),                      
          tang1(color=red),
          F1(color=blue, symbol=solidcircle, symbolsize=16),                      
          F2(color=red, symbol=solidcircle, symbolsize=16),
          C1(color=black, symbol=solidcircle, symbolsize=16),
          T1(color=blue, filled=true, transparency=0.9)
        ],
        axes=none
      )
    ]
  );
 

 

 

Download ellipseStuff.mw

First 9 10 11 12 13 14 15 Last Page 11 of 207