Mathematica Tips 2

@MathematicaTip のツイートをまとめました。数式処理プログラム Mathematica を使う人にとって便利な Tips が満載! 過去のツイートはこちら http://togetter.com/li/150700 続きを読む
1
Mathematica Tips @MathematicaTip

Plot a vector field over a surface: data = Table[{y, -x, z}, {z, -3, 3}, {y, -2, 2}, {x, -2, 2}]; ListSliceVectorPlot3D[data,"CenterPlanes"]

2016-01-05 00:32:15
Mathematica Tips @MathematicaTip

Random ball collections: Graphics3D[ Table[{Hue[RandomReal[]], Ball[RandomReal[1, {3}], RandomReal[0.1]]}, {200}]]

2015-12-24 01:22:58
Mathematica Tips @MathematicaTip

The permanent of a square matrix of all ones is the factorial of the dimension: Table[Permanent[ConstantArray[1, {n, n}]], {n, 10}]

2015-12-23 00:57:33
Mathematica Tips @MathematicaTip

Generate a set of pseudorandom matrices with GaussianSymplecticMatrixDistribution: RandomVariate[GaussianSymplecticMatrixDistribution[2]]

2015-12-22 00:37:47
Mathematica Tips @MathematicaTip

Bandpass filtering of vector: data=Table[Sin[i^2+i]+RandomReal[{-.2,.3}], {i,0,Pi,0.01}];ListLinePlot/@{data,BandpassFilter[data,{.01,.02}]}

2015-12-19 00:28:39
Mathematica Tips @MathematicaTip

Show the current locale time zone setting: $TimeZoneEntity

2015-12-17 01:32:06
Mathematica Tips @MathematicaTip

Display the grammatical structure of a sentence: TextStructure["The cat sat on the mat."]

2015-12-16 01:20:37
Mathematica Tips @MathematicaTip

Get total mass of 10 hydrogen atoms: EntityValue[EntityCopies[Entity["Element", "Hydrogen"], 10], EntityProperty["Element", "AtomicMass"]]

2015-12-15 00:38:36
Mathematica Tips @MathematicaTip

Partition into blocks that are up to 3 elements long; the last block is shorter: Partition[Range[10], UpTo[3]]

2015-12-12 01:19:51
Mathematica Tips @MathematicaTip

Open a connection to a server at a specified socket address: bit.ly/1m8HyER

2015-12-09 02:07:44
Mathematica Tips @MathematicaTip

Sample from matrix distribution: sigR = {{3, 1}, {1, 4}}; sigC = {{1, -1/2}, {-1/2, 2}}; RandomVariate[MatrixTDistribution[sigR, sigC, 3]]

2015-12-08 01:34:53
Mathematica Tips @MathematicaTip

Generate a Cornu spiral: DSolve[{x'[s] == Cos[t[s]], y'[s] == Sin[t[s]], t'[s] == s, x[0] == 0, y[0] == 0, t[0] == 0}, {x, y, t}, s]

2015-12-05 02:04:34
Mathematica Tips @MathematicaTip

Surface area of the Earth: GeoArea["World"]

2015-12-03 01:11:26
Mathematica Tips @MathematicaTip

With IncludeInflections->True, inflected forms will be included in results: MemberQ[WordList[IncludeInflections -> True], "zooming"]

2015-12-02 01:02:50
Mathematica Tips @MathematicaTip

Find a sample of 5 "Volcano" entities: RandomEntity["Volcano", 5]

2015-11-26 00:55:55
Mathematica Tips @MathematicaTip

Search for articles by title: WikipediaSearch["Artificial intelligence", "MaxItems" -> 2]

2015-11-25 01:26:32
Mathematica Tips @MathematicaTip

Shortest path (geodesic) between two locations: GeoGraphics[GeoPath[{{-35, -55}, {70, 100}}], GeoRange -> "World", Frame -> True]

2015-11-24 00:48:58
Mathematica Tips @MathematicaTip

Give the total atomic mass of all chemical elements: EntityValue[EntityGroup[ElementData[]], "AtomicMass"]

2015-11-20 01:12:42
Mathematica Tips @MathematicaTip

Print the result of an intermediate computation: expr1; Echo[x = 1 + 1]; expr2

2015-11-19 01:13:44
Mathematica Tips @MathematicaTip

Look up the IP addresses associated with a host: HostLookup["localhost"]

2015-11-18 00:57:34
Mathematica Tips @MathematicaTip

Single pseudorandom matrix w/ nonzero mean: RandomVariate[MatrixTDistribution[{{1,2,3}, {4,5,6}}, {{1,1/3}, {1/3,1}}, IdentityMatrix[3], 2]]

2015-11-17 03:05:02
Mathematica Tips @MathematicaTip

Get a "pure function" solution for y: DSolve[{y'[x] + y[x] == a Sin[x], y[0] == 0}, y, x]

2015-11-14 00:53:07
Mathematica Tips @MathematicaTip

Compare offset btw Eastern Time & London Time on different dates: TimeZoneOffset["America/New_York","Europe/London",DateObject[{2015,3,7}]]

2015-11-13 01:17:47
Mathematica Tips @MathematicaTip

Get a sorted list of 2000 random words: AlphabeticSort[RandomSample[WordList[Language -> "Russian"], 2000], "Russian"]

2015-11-12 01:29:44
Mathematica Tips @MathematicaTip

Compute detailed properties of the standard ocean model with StandardOceanData: bit.ly/1iS0RQw

2015-11-11 03:52:20
1 ・・ 10 次へ