La recherche a retourné 562 résultats

par compsystems
lun. févr. 17, 2020 1:39 pm
Forum : Xcas - English
Sujet : piecewise cmd
Réponses : 1
Vues : 1917

piecewise cmd

Hello F0( X ) := piecewise( X < -2,-X,-2 ≤ X < 0, X + 1, 0 ≤ X < 2, X - 1, X ≥ 2, X^2 ); plotfunc( F0(X), X ) [enter] ok F0( 2 ) [enter] 4 F7 := (X)->( (X<-2)? -X: ( ((-2≤X) AND (X<0))? X+1: ( ((0≤X) AND (X<2))? X-1 : ((X≥2)? X^2: X^2) ) ) ); [enter] ok plotfunc( F7(X), X ) [enter] ok F7( 2 ) [enter...
par compsystems
lun. févr. 17, 2020 1:31 pm
Forum : Xcas - English
Sujet : findhelp() cmd
Réponses : 5
Vues : 2886

Re: findhelp() cmd

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, '*' )
par compsystems
dim. févr. 16, 2020 7:04 pm
Forum : Xcas - English
Sujet : findhelp() cmd
Réponses : 5
Vues : 2886

Re: findhelp() cmd

What is the command to search for common words, for example, maxima is ?? (%i1) ??abs; [shift]+[enter] returns " 0: Package abs imp 1: abs (Functions for Numbers) 2: abs boxchar (Functions and Variables for Display) 3: abs int (Functions and Variables for Fourier series) 4: abs olute_real_time (Func...
par compsystems
sam. févr. 08, 2020 5:27 am
Forum : Xcas - English
Sujet : findhelp() cmd
Réponses : 5
Vues : 2886

findhelp() cmd

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 n...
par compsystems
jeu. févr. 06, 2020 9:18 pm
Forum : Xcas - English
Sujet : convert( ) cmd
Réponses : 2
Vues : 2424

convert( ) cmd

Hello A SEQUENCE is transformed into VECTOR with the order nop() nop( 1, 2, 3) [↵] returns [1, 2, 3] A VECTOR / LIST / SET / POLYNOMY / MATRIX is transformed into SEQUENCE with the op() cmd op( [ 1 ,2, 3 ] ) [↵] returns ( 1 ,2, 3 ) op( list[ 1 ,2, 3 ] ) [↵] returns ( 1 ,2, 3 ) op( set[ 1 ,2, 3 ] ) [...
par compsystems
mar. févr. 04, 2020 11:11 pm
Forum : Xcas - English
Sujet : seq( from m .. n, step )
Réponses : 2
Vues : 2171

Re: seq( from m .. n, step )

// Increase in one unit seq1 := ( 1, 2, 3, 4 ) [enter] ( 1, 2, 3, 4 ) seq1a := seq( 1 .. 4 ) [enter] ( 1, 2, 3, 4 ) seq1b := seq( 0 .. 4 ) [enter] ( 0, 1, 2, 3, 4 ) seq1c := seq( -2 .. 4 ) [enter] ( -2, -1, 0, 1 , 2, 3, 4 ) seq1d := seq( 0.1 .. 3.8 ) [enter] ( 0.1, 1.1, 2.1, 3.1 ) seq1e := seq( -2.1...
par compsystems
mar. févr. 04, 2020 6:22 pm
Forum : Xcas - English
Sujet : matplotlib.pyplot
Réponses : 4
Vues : 2825

Re: matplotlib.pyplot

Good. After that incorporation, I think it is convenient to move on to a new version 1.6.0
par compsystems
sam. févr. 01, 2020 4:01 pm
Forum : Xcas - English
Sujet : matplotlib.pyplot
Réponses : 4
Vues : 2825

matplotlib.pyplot

Hi

One idea, I know that there are functions for plotting images in Xcas, but it would be important to create functions that operate similarly to matplotlib.pyplot

Thank you
par compsystems
jeu. janv. 30, 2020 9:29 pm
Forum : Xcas - English
Sujet : seq( from m .. n, step )
Réponses : 2
Vues : 2171

Re: seq( from m .. n, step )

Edit: Although more useful is that if the first argument contains the operator .. do the following seq( from m .. n, step )

seq( 0 .. 4, 2 ) -> (0,2,4)
par compsystems
ven. janv. 24, 2020 10:23 pm
Forum : Xcas - English
Sujet : seq( from m .. n, step )
Réponses : 2
Vues : 2171

seq( from m .. n, step )

Hello BP seq( 0 .. 4, 1.9 ) [enter] ( 0, 1.9, 3.8 ) but seq( 0 .. 4, 2 ) [enter] [ 0 .. 4, 0 .. 4 ] Since there are two arguments, a sequence must return and not a list [ 0 .. 4, 0 .. 4 ] -> ( 0 .. 4, 0 .. 4 ) eval( seq( 0 .. 4, 2 ) ) -> [0 .. 4,0 .. 4] now the output to be useful should be seq( 0 ....
par compsystems
mer. janv. 15, 2020 8:36 pm
Forum : Xcas - English
Sujet : # as comentary (Xcas mode)
Réponses : 2
Vues : 2153

Re: # as comentary (Xcas mode)

ok, but if comments are supported with # (Xcas mode), the problem of interpretation in text book mode// and / * in hp-prime is fixed.
par compsystems
mar. janv. 14, 2020 8:55 pm
Forum : Xcas - English
Sujet : extracting elements [+#], [+#..+#], [-#], [-#..-#], ..
Réponses : 0
Vues : 1968

extracting elements [+#], [+#..+#], [-#], [-#..-#], ..

Hi There are some outputs that I cannot understand when extracting elements, please review the following script seq1 := ( a, b, c ) /* SIMPLE [] USE OF POSITIVE INDICES [0, ...] */ seq1[ 0 ] -> a seq1[ 1 ] -> b seq1[ 2 ] -> c /* USE OF NEGATIVE INDICES [..., - 1] */ seq1[ -1 ] -> c seq1[ -2 ] -> b s...
par compsystems
mar. janv. 14, 2020 3:17 am
Forum : Xcas - English
Sujet : # as comentary (Xcas mode)
Réponses : 2
Vues : 2153

# as comentary (Xcas mode)

Hi The hpprime entry line does not interpret the comments, that is, the symbols // assumes them as double division ÷÷ and /*, */ as ÷* (see discussion in https://www.hpmuseum.org/forum/thread-14355.html). Is it possible that XCAS codes interpret a comment // with the symbol # ? this way you can defi...
par compsystems
lun. janv. 13, 2020 3:13 pm
Forum : Xcas - English
Sujet : copy and time cmd
Réponses : 1
Vues : 1689

copy and time cmd

Hi BP, Good morning Porting the code to HP-prime, I observe that the time that Xcas throws does not approximate to deltalist(time(fract(320,240,10))) Also the copy function res2:=copy(res1) in what differs of res2:=res1? // hpprime: input mode, linear (algebraic) function fract(X_,Y_,Nmax) // Mandel...
par compsystems
jeu. janv. 09, 2020 10:58 pm
Forum : Xcas - English
Sujet : Validating Function Inputs in a modern way
Réponses : 0
Vues : 1928

Validating Function Inputs in a modern way

An interesting video and information on how to validate arguments in a modern way (MatrixLab) Create rectangle coordinates before function rectCoords = createRectangleCoords(width, height, varargin) %CREATERECTANGLECOORDS Easily create coordinates for rectangle given its width %and height % Error ch...