package for mathematica-3

mayflowers posted @ 2010年12月03日 10:50 in mathematica with tags Mathematica package , 1986 阅读

BeginPackage["package`"] set package` to $Context and {package`} to $ContextPath. 


EndPackage[] reset all variables to their values before BeginPackage[]

Usage Statements
  Function::usage="some statements or usage messages for easier use.";

Warning message
   Function::rwn="some error or warning message."

A simple example:

BeginPackage["test`"]
test::"usage" = "usage of test";
test::rwn = "Your input is `1`";
Begin["`private`"]
test[x_] := Module[{},Message[test::rwn,x]];
End[]
EndPackage[]

Save the above as mytest.m to the path Applications\mypackage\

And the result is

 


 

Godaddy Customer Ser 说:
2022年8月09日 15:51

GoDaddy is the largest domain registrar which brings various services to the people to bring their innovative ideas online. They sell domains that may easily searched from their search bar and does adds the services like Web / Domain Hosting, Godaddy Customer Service Word press Hosting, domain registration, eCommerce Solutions, Website Builder, SSL security certificates, Professional Email & Marketing, VPS, Microsoft 365 and more.

EBT Result 说:
2022年9月06日 21:45

Government of the People’s Republic of Bangladesh, Directorate of Primary Education (DPE), is going to announce PSC Result 2022 in student wide on 30th December 2022 for all divisional Grade 5 exam result with Ebtedayee Result 2022 for annual final terminal examinations, The Primary School Certificate Examination Result 2022 will be announced for both of General and Madhrsah students in division wise to all education board known as Prathomik Somaponi Result 2022. EBT Result The DPE has successfully conducted the class 5th grade PSC and Ebtedayee Examination tests from 17th to 24th November 2022 under all education boards of Dhaka, Chittagong, Comilla, Rajshahi, Sylhet, Barisal, Jessore, Dinajpur and Madrasah Board, and the DPE Grade-5 exams are successfully conducted at all 7,194 centers across the country.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter