package for mathematica-3

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

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.

civaget 说:
2023年12月12日 01:12

구글 상위노출 isn't just a ranking—it's a reflection of your commitment to delivering value and a superior online experience.

civaget 说:
2023年12月12日 19:39

제주유흥's spa retreats left me feeling refreshed and pampered. A must-visit for relaxation seekers.

civaget 说:
2023年12月12日 20:40

No more spa commutes for me! Calling 러시아마사지 to my location is a game-changer.

civaget 说:
2023年12月13日 19:06

Experience the magic of 울산오피, where expert therapists and state-of-the-art facilities combine to create a holistic wellness experience like no other.

civaget 说:
2023年12月14日 23:58 In my opinion, enhancing vitamin means to do with individual data is without a doubt sooner or later as many as the actual to bring a. 스포츠중계
civaget 说:
2023年12月16日 20:16

청주오피 is my Cheongju guide. Detailed info, real user reviews, and transparent pricing ensure a memorable experience.

civaget 说:
2023年12月19日 01:32

누누티비's content diversity keeps me entertained around the clock.

civaget 说:
2023年12月20日 20:44

 

I'm grateful for 티비위키's wealth of content options.

civaget 说:
2023年12月21日 03:54

동대문휴게텔 is a haven of relaxation. The diverse massage services and attentive staff ensure a memorable escape from the hustle and bustle of life.

civaget 说:
2023年12月24日 14:13

Tipping's 설문조사 사이트 provides excellent value for money, making it a budget-friendly choice for surveys and events.

civaget 说:
2023年12月26日 21:27

If you're visiting Gyeongnam, I highly recommend 부달. It's a fantastic resource for food lovers, culture enthusiasts, and travelers.

civaget 说:
2023年12月26日 22:09

I’m happy I found this weblog, I couldnt uncover any data on this topic matter prior to. I also run a site and if you want to ever serious in a little bit of guest writing for me if feasible really feel free to let me know, i’m always look for people to examine out my site. Please stop by and leave a comment sometime! 카지노사이트

civaget 说:
2023年12月26日 22:56

Thanks to 스포츠중계, I'm never out of the sports loop.

civaget 说:
2023年12月27日 04:35

The flexibility to experiment with different writing styles and tones is a creative advantage in self-publishing. self publishing on amazon

civaget 说:
2024年1月01日 13:35

Great knowledge, do anyone mind merely reference back to it Divine Revelations

civaget 说:
2024年1月07日 22:11

오피스타's recommendations are my go-to for the ultimate massage experience.

wolfpat 说:
2024年6月22日 15:04

This post has some really wonderful insights and interpretations in it. Be sure to keep writing more great articles like this one. BullEyes


登录 *


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