Problem with MatchQ and SameQ
- To: mathgroup at smc.vnet.net
- Subject: [mg56429] Problem with MatchQ and SameQ
- From: mbli at euskalnet.net (Miguel)
- Date: Mon, 25 Apr 2005 01:30:43 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
Normally I operate with Mathematica 5.0. The functions MatchQ and
SameQ work well in a notebook but don't it in a programm.
For example,in a notebook
Clear[f];
In[1]: f[x_,y_,option_]:=
If[MatchQ[option,SolutionForm->Explicit],x+y,
If[MatchQ[option,SolutionForm->Implicit],x*y],Print["Eror"]]
In[2]:
f[2,3,SolutionForm->Implicit]
Out[2]:
6
It works well.
In my programm,
<<Calculus`MyProgramm`
In[3]:
f[2,3,SolutionForm->Implicit]
Out[2]:
Error
Thanks