Joe Riel

9660 Reputation

23 Badges

20 years, 6 days

MaplePrimes Activity


These are replies submitted by Joe Riel

You can put the assignment in the Maple initialization file. See ?maple for details. For linux, create a text file ~/.mapleinit with the line
libname := "/home/yourname/maple/lib/newdossier", libname:
More useful might be something like
# ~/.mapleinit - Maple initialization file
# This is read each time Maple is started or restarted.
# Assign global variable mylib and reassign libname and savelibname to use it.

mylib := "/home/yourname/maple/lib/newdossier":  # adjust as appropriate
libname := mylib, libname:
savelibname := mylib:
I see what you mean. Doing Format > Styles > 2D Output > Modify and unchecking all boxes should work. It doesn't. If I select just bold, I get a bold, upright font. If I select just italic, I get an italic font. If I select nothing, I get an italic font. There appears no way to get a plain upright font.
I see what you mean. Doing Format > Styles > 2D Output > Modify and unchecking all boxes should work. It doesn't. If I select just bold, I get a bold, upright font. If I select just italic, I get an italic font. If I select nothing, I get an italic font. There appears no way to get a plain upright font.
I used to use a light gray background, but have been using the yellow (I thought that was the default). Maybe with Maple 12 we'll be able to set the background of a standard worksheet (there is no setting for it in that ini file). Switching to an LCD screen has helped, but being able to adjust the background is preferable.
Where are you looking? Alas, this setting is not accessible from the Tools > Options dialog box in the gui. Rather, you have to modify the file that saves the gui settings. On Linux, this file is ~/.maple/11/maplerc. On Windows it is typically C:\Documents and Settings\UserName\Maple11.ini. I have just been told that the file for Maple 11 is actually names Maple.ini and located at C:\Documents and Settings\UserName\Local Settings\Application Data\Maple\11\Maple.ini.
The GraphTheory package is new for Maple 11. What version of Maple is the original poster using? There is an older networks package that should suffice.
The GraphTheory package is new for Maple 11. What version of Maple is the original poster using? There is an older networks package that should suffice.
I just tried exporting a worksheet with a single plot from the standard gui to LaTeX on Maple10 and Maple11. In neither case did the generated postscript have a border. I don't believe that I've done anything special to configure that; certainly not for Maple 11. If it matters, I'm on a linux box. Instead of right-clicking and selecting export as eps, you could use plotsetup, which gives control over borders and orientation: plotsetup(ps, plotoutput="filename.eps", plotoptions="landscape,noborder"): plot(sin); The downside is you have to modify this for each plot, since you'll want to save to different files, however, it is easy enough to write a procedure to do this, for example
ploteps := proc({dir :: string := getenv("HOME")
                  , file :: string := "myplot"
                  , plotoptions :: string := "landscape,noborder"
                 })

    plotsetup('ps'
              , ':-plotoutput' = sprintf("%s/tmp/%s.eps", dir, file)
              , ':-plotoptions' = plotoptions);

    print(plot(_rest));
    plotsetup('default');
    NULL;
end proc:
Then
ploteps(sin, 0..1, file = "mysin");
creates the eps file (on my system) /home/joe/tmp/mysin.eps
While the operation is not quite as nice, you can use ArrayTools:-Copy to quickly select every k-th element of a given Array.
While the operation is not quite as nice, you can use ArrayTools:-Copy to quickly select every k-th element of a given Array.
sprintf is handy here:
for i to 100 do 
   sprintf("p%d", 5000+i);
end do;
If you just want to create a sequence of strings, you could do
cat("p", 5001..5100);
sprintf is handy here:
for i to 100 do 
   sprintf("p%d", 5000+i);
end do;
If you just want to create a sequence of strings, you could do
cat("p", 5001..5100);
Excellent suggestion, that is precisely what he wants:
g := curry(f, A);
                      g := () -> f(3.5,args)
Excellent suggestion, that is precisely what he wants:
g := curry(f, A);
                      g := () -> f(3.5,args)
It's unfortunate that there isn't an applytype procedure, analogous to (the little used) maptype. Here I'll assign one and show how it could have be used
applytype := proc(typ::type, f, expr)
    `if`(expr::typ, f(expr, _rest), expr);
end proc;
RealRangeUnion := proc()
    applytype(specfunc(anything,OrProp),op,OrProp(_passed));
end:
This could be done with subsindets, however, that is a bit overkill.
First 169 170 171 172 173 174 175 Last Page 171 of 195