Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get all messages of a bulit-in function in mma? i.e. all messages of Sin

how to get all messages of a bulit-in function in mma?

For example, I want to get all messages of Sin.

How to do this?

Messages[Sin] doesn't work.

Thanks :)

like image 805
FreshApple Avatar asked Feb 25 '23 02:02

FreshApple


1 Answers

The messages for built-in functions are often not loaded until they have been issued at least once. For such functions, you might try inspecting Messages.m:

NotebookOpen @
  FileNameJoin @
    { $InstallationDirectory
    ,"SystemFiles"
    ,"Kernel"
    ,"TextResources"
    ,"English"
    ,"Messages.m"
    }

or

FindList[
  FileNameJoin @
    { $InstallationDirectory
    ,"SystemFiles"
    ,"Kernel"
    ,"TextResources"
    ,"English"
    ,"Messages.m"
    }
, "NDSolve"
]
like image 116
WReach Avatar answered Apr 06 '23 08:04

WReach