Is &where a keyword?

 

I thought before that &where is not  a keyword, but I don't understand the difference here (I found &where in the solutions of pdes):

restart;
f1:=a &where b;
op(2,f1);

it gives me {b}

f2:=a &something b;
op(2,f2);
 

gives me simply b

I don't find any information on &where in the help.

 

 

 

 

 

 

 

 

acer's picture

pdsolve

The name `&where` is that of a Library routine. You can use showstat() to look at its source.

I believe that it is used by pdsolve, and that it can appear in output as a mechanism for qualifying results. See ?pdsolve and look for references to PDESolStruc .

You may also already know this, but if you create a procedure whose name begins with & then it can be used as an infix operator. So in you example a &where b is pretty much the same as calling `&where`(a,b).

acer

Thanks

 

Thanks for your help. 

I have checked the source of `&where` and I 'll check PDESolStruc.

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}