Add an alias for the diff command : now d(f) = derive(f)
This commit is contained in:
parent
ead16b3c62
commit
43d40cee69
|
@ -57,6 +57,7 @@ const unsigned char *Setup[]={
|
|||
"npr(n,r)=(n!)/(n-r)!",
|
||||
"ncr(n,r)=n!/(r!(n-r)!)",
|
||||
"xor(x,y)=or(and(x,not(y)),and(not(x),y))",
|
||||
"derive(f)=d(f)",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
@ -66,8 +67,6 @@ int AddIn_main(int isAppli, unsigned short OptionNum)
|
|||
unsigned char *expr;
|
||||
char fkey = NULL;
|
||||
|
||||
//fkey = *(get_tex_flag_address());
|
||||
|
||||
initialize_tuamath();
|
||||
// initialize failed ?
|
||||
if (!(free_stack && mem && stack && symtab && binding && arglist && logbuf))
|
||||
|
|
|
@ -857,7 +857,7 @@ void Console_FMenu_Init()
|
|||
// Does the file exists ?
|
||||
// Todo : check the error codes...
|
||||
if(!cfg) {
|
||||
unsigned char conf_standard[] = {"F1 calc\nd(\nintegral(\ntaylor(\nsum(\nproduct(\nsimplify(\nfactor(\nF2 trig\ncosh(\narccosh(\nsinh(\narcsinh(\ntanh(\narctanh(\nF3 cplx\nmag(\narg(\nreal(\nimag(\nconj(\npolar(\nrect(\nF4 alge\nabs(\ndet(\nadj(\ncross(\ncurl(\ncontract(\nhilbert(\nF5 poly\nnroots(\ndeg(\ncoeff(\nquotient(\nhermite(\nlaguerre(\nlegendre(\nF6 arit\nmod(\ngcd(\nlcd(\nisprime(\nprime(\nfactor(\n"};
|
||||
unsigned char conf_standard[] = {"F1 calc\nderive(\nintegral(\ntaylor(\nsum(\nproduct(\nsimplify(\nfactor(\nF2 trig\ncosh(\narccosh(\nsinh(\narcsinh(\ntanh(\narctanh(\nF3 cplx\nmag(\narg(\nreal(\nimag(\nconj(\npolar(\nrect(\nF4 alge\nabs(\ndet(\nadj(\ncross(\ncurl(\ncontract(\nhilbert(\nF5 poly\nnroots(\ndeg(\ncoeff(\nquotient(\nhermite(\nlaguerre(\nlegendre(\nF6 arit\nmod(\ngcd(\nlcd(\nisprime(\nprime(\nfactor(\n"};
|
||||
memory_createfile("\\\\fls0\\FMENU.cfg", strlen((char*)conf_standard)+1);
|
||||
handle = memory_openfile("\\\\fls0\\FMENU.cfg", _OPENMODE_READWRITE);
|
||||
memory_writefile(handle, conf_standard, strlen((char*)conf_standard)+1);
|
||||
|
|
Loading…
Reference in New Issue