0
$\begingroup$

I want to find the (NumericFunction) built-in functions that take exactly one document.

Select[Names["*"], MemberQ[Attributes[#], NumericFunction] &]

returns a list of numeric functions but among them there are both functions like Sinand QHypergeometricPFQ.

How can I be more specific? Thanks.

$\endgroup$
  • 1
    $\begingroup$ You can try to use it: Select[Select[Names["*"], MemberQ[Attributes[#], NumericFunction] &], MatchQ[SyntaxInformation[Symbol[#]], {_ -> {_}}] &] $\endgroup$ – Kirill Belov Mar 2 '17 at 11:02
  • 1
    $\begingroup$ @KirillBelov I have to say the SyntaxInformation don't very fit such case.How about those function with two argument? $\endgroup$ – yode Mar 2 '17 at 11:09
  • 1
    $\begingroup$ @Dimitris wanted to get built-in functions with one argument. In other cases you can apply another pattern MatchQ[SyntaxInformation[func], pattern] $\endgroup$ – Kirill Belov Mar 2 '17 at 11:18
  • $\begingroup$ @KirillBelov Look here $\endgroup$ – yode Mar 2 '17 at 13:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.