findhelp() cmd

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 518
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

findhelp() cmd

Message par compsystems » sam. févr. 08, 2020 5:27 am

Hi Mr. Bernard

We are using the online version of Xcas. One of the commands that help to see the syntax or function of a command is findhelp() on command line, but the output is a bit confusing, because tags like "Related" are missing


findhelp(abs) [enter] retunrs
Returns the absolute value or the norm of its argument.
arg
abs(-4);abs(1+2*i);abs((1+2*i)^2);abs([-2,1+i,-4])
for the initial student does not understand what is "arg", the "Related" or "see also" tag is needed

findhelp(abs) [enter] ->
Returns the absolute value or the norm of its argument.
abs(Cplx||LstCplx)

Related: arg

Examples:
abs(-4);
abs(1+2*i);
abs((1+2*i)^2);
abs([-2,1+i,-4])

it is also necessary that the output be replaced, <br> with a new line, and ignore or replace <b> and </b> with empty string
Thanks

parisse
Messages : 5081
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: findhelp() cmd

Message par parisse » dim. févr. 09, 2020 6:53 am

findhelp is not intended to be run in a commandline in Xcas for Firefox. For help, you should use the input field at the right of Doc (when you press enter in this field, findhelp is called and it's output will display buttons that make it easy to copy/paste an example).

compsystems
Messages : 518
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

Re: findhelp() cmd

Message par compsystems » dim. févr. 16, 2020 7:04 pm

What is the command to search for common words, for example, maxima is ??

(%i1) ??abs; [shift]+[enter] returns

"
0: Package absimp
1: abs (Functions for Numbers)
2: absboxchar (Functions and Variables for Display)
3: absint (Functions and Variables for Fourier series)
4: absolute_real_time (Functions and Variables for Runtime Environment) 5: cabs (Functions for Complex Numbers)
6: find_root_abs (Functions for numerical solution of equations)
7: logabs (Root Exponential and Logarithmic Functions)
8: rombergabs (Functions and Variables for romberg)
Enter space-separated numbers, 'all'or 'none': I
"

parisse
Messages : 5081
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: findhelp() cmd

Message par parisse » lun. févr. 17, 2020 6:13 am

Searching help for word will show the help for word if word is a keyword, or list some keywords if word is not a keyword.

compsystems
Messages : 518
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

Re: findhelp() cmd

Message par compsystems » lun. févr. 17, 2020 1:31 pm

if it works in the desktop version as a pop-up window, but it is very useful to have a command that returns the output in text format.
This is done by many CAS =)

findhelp(abs, all) or findhelp(abs, '*' )

parisse
Messages : 5081
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: findhelp() cmd

Message par parisse » lun. févr. 17, 2020 4:17 pm

If you search help on a word that is a keyword, chances are that you want the help on this keyword (or on a related command listed in see also). It's always possible to truncate your word to find other keywords, for example ?ab returns in See also
1/ abs 2/ abcuv 3/ about 4/ at 5/ algsubs 6/ asc 7/ arg 8/ arc 9/ ans

Répondre