sand15

797 Reputation

11 Badges

10 years, 9 days

MaplePrimes Activity


These are questions asked by sand15

Hi everybody,

 

I want to plot many curves in the form of a table.

For instance, let    p := plot(x, x=0..1, labels=[x*Unit('m'), y*Unit('m')]):

The command   plots:-display(p)  returns a plot  with labels x [[m]] and y [[m]], just as expected.

But the commands (remember I have several plots)
                             plots:-display(<p>);                              # and the generalization plots:-display(<p | p>)
                             DocumentTools:-Tabulate([p]);           # and the generalizationDocumentTools:-Tabulate([p,p])
both provide labels  x Units:-Unit('m') and  y Units:-Unit('m')

Is there a way to fix this and obtain plots withe the expected labels ?

Thank to all of you for yout help

Hi everybody,

I have differential equation of the form eq := diff(x(t), t) = x(t) + 1  and I want to find the name of the dependent variable (more generally this issue concerns a differential system in N dependent variables).

How should I use “indets” in order to obtain {t, x(t)} ?

(indets(eq, name) returns {t}, while indets(eq, function) returns {t, x(t), d/dt x(t)}.

Thanks in advance

Hi everybody,

 

I'm working under Windows 7 

 

My need :
A MAPLE code has to be run from an ECLIPSE session (through a cmaple MyCode).
In this ECLIPSE session the user chooses a data file among many, and ECLIPSE then has to tell MyCode what file it has to read.


The solution I figured out :
Step 1 : ECLIPSE  set an environment variable "DataFile" which contains the user's choice, for instance set MyData=NameOfTheFile
Step 2 : Within MyCode I get the value of MyData from these two commands

MyFile := getenv(DataFile):

readdata(MyFile, …)

 

This doesn't work ( getenv(DataFile) returns [1," "] instead of the desired file name).
In fact it seems that getenv enables access to the “native” environment variables of Windows only (for instance HOMEDIR), not to the user defined environment variables (?)


Is  it possible to fix this and how ?

PS  : I face the same difficulties if I type set MyData=NameOfTheFile directly from a cmd command and try to access the value of MyData from a Maple session


Thanks for your help

 

 

Hi everybody,

I am presently developing a MAPLE-based application and I need to trace its evolutions through a “version control process”.
For codes written in other languages I use to use GIT (it acts with text files and it has syntactic coloring for different languages).

I suspect the development teams routinely face this version control issue.
Could you advise me,  on the versioning tools you use ?

Great thanks in advance

Hi everybody,

I use a maplet that contains a DropDownBox named DDB.
This DropDownBox has a list named MyList
I want to replace MyList by a new list named MyNewList

The syntax given in the Maplets[DropDownBox] help page is
Maplets :-Tools :-Set(DDB(itemlist)=MyNewList)

This command returns the error
error in Set, invalid option for  ‘DDB(itemlist)’  ….

Is it a bug or some misuse (in the help page the “itemlist” option is written itemlist* : what is the meaning of this “*” ?)

As always any answer will be greatly appreciated.

First 13 14 15 16 17 18 19 Page 15 of 22