Sponsored links: Algebra eBooks
 

Related

sposition-string

answer:x+2=y;

sposition("=",string(...

Calculate

sposition-string

answer:x+2;

sposition("=",string(...

answering:x+2+y;

Calculate

sposition-string

answer:x+2;

sposition("=",string(...

answering:x+2=y;

Calculate

sposition-string

answer:x+2;

not listp(answer);

is(sposition("=",stri...

Calculate

sposition

? sposition;

Calculate

sposition-string

answer:x+2=y;

sposition("=",string(...

Calculate

sposition-string

answer:x+2;

sposition("=",string(...

answering:x+2+y;

Calculate

sposition-string

answer:x+2;

sposition("=",string(...

answering:x+2=y;

Calculate

sposition-string

answer:x+2;

not listp(answer);

is(sposition("=",stri...

Calculate

sposition

? sposition;

Calculate

sposition

Run Example
(%i1)? sposition;

 -- Function: sposition (<char>, <string>)
     Returns the position of the first character in <string> which
     matches <char>.  The first character in <string> is in position 1.
     For matching characters ignoring case see `ssearch'.


(%o1)                                true
(%i2) 
Run Example
answer:x+2;
(%o1)                                x + 2
(%i2) is(sposition("=",string(answer))=-1);
(%o2)                                false
(%i3) 
Run Example
answer:x+2;
(%o1)                                x + 2
(%i2) is(sposition("=",string(answer))=0);
(%o2)                                false
(%i3) 

Related Help

Help for Sposition