Mathematica Tips

@MathematicaTip のツイートをまとめました。数式処理プログラム Mathematica を使う人にとって便利な Tips が満載! 新しいツイートはこちら http://togetter.com/li/757785 続きを読む
プログラミング mathematica
2
Mathematica Tips @MathematicaTip
Specify the color of graphics primitives with opacity: Graphics3D[{XYZColor[1, 0, 1], Sphere[]}]
Mathematica Tips @MathematicaTip
Pattern resembling Pascal's triangle: NestList[Differences, Normal[SparseArray[10 -> 1, 21]], 11]
Mathematica Tips @MathematicaTip
XMLTemplate turns into a TemplateObject: XMLTemplate[""]
Mathematica Tips @MathematicaTip
Get the user information from a generic URL: URLParse["ssh://user:pass@host:port/base2?par1=val1#fragment", "User"]
Mathematica Tips @MathematicaTip
The curvature, tangent, and normal for a circle in two dimensions: FrenetSerretSystem[{Cos[t], Sin[t]}, t]
Mathematica Tips @MathematicaTip
Compute a matrix kernel for quadratic interpolation over a window of radius 5: SavitzkyGolayMatrix[5, 2] // MatrixPlot
Mathematica Tips @MathematicaTip
Make a graphic of solar system orbit paths: Graphics3D[PlanetData[PlanetData[], "OrbitPath"]]
Mathematica Tips @MathematicaTip
The visible region from geostationary orbit: GeoGraphics[GeoVisibleRegion[{0, 0, Quantity[35786, "Kilometers"]}], GeoRange -> "World"]
Mathematica Tips @MathematicaTip
Estimate the correlation function at lag 2: CorrelationFunction[{2, 3, 4, 3}, 2]
Mathematica Tips @MathematicaTip
A random collection of lines: Graphics3D[Table[{Hue[RandomReal[]], InfiniteLine[RandomReal[1, {2, 3}]]}, {100}], BoxRatios -> 1]
Mathematica Tips @MathematicaTip
Distance between two colors: ColorDistance[Red, Blue]
Mathematica Tips @MathematicaTip
Find the shortest tour in a graph: g = PolyhedronData["Dodecahedron", "SkeletonGraph"]; FindShortestTour[g]
Mathematica Tips @MathematicaTip
Interpret phone numbers: Interpreter["PhoneNumber"]["+1 (202) 456-1111"]
Mathematica Tips @MathematicaTip
3D infinite line: Graphics3D[InfiniteLine[{0, 0, 0}, {1, 2, 3}]]
Mathematica Tips @MathematicaTip
Use diffuse surface color: Graphics3D[{LUVColor[1, -.5, 1], Sphere[]}]
Mathematica Tips @MathematicaTip
Specify currency value at specific date: CurrencyConvert[Quantity[1, DatedUnit["USDollars", {2009,5,1}]], DatedUnit["Euros", {2009,5,1}]]
Mathematica Tips @MathematicaTip
Reorder the keys of all associations: KeyUnion[{<|a -> 1, b -> 2, c -> 3|>, <|c -> z, a -> x, b -> y|>}]
Mathematica Tips @MathematicaTip
Decode percent-encoded string using specified encoding: URLDecode["E%9Atv%9As+Lor%87nd+University", CharacterEncoding -> "MacintoshRoman"]
Mathematica Tips @MathematicaTip
View the traditional form of the Cantor staircase function: CantorStaircase[x] // TraditionalForm
Mathematica Tips @MathematicaTip
G7 country collage by population: ImageCollage[Rule @@ CountryData[#, {"Population", "Flag"}] & /@ CountryData["G7"], ImagePadding -> 3]
Mathematica Tips @MathematicaTip
Particle lifetime rank plot showing no time quantization evidence: ListLogPlot[Reverse[Sort[ParticleData[#,"Lifetime"]& /@ ParticleData[]]]]
Mathematica Tips @MathematicaTip
Use the "Albers" projection with default parameters: GeoGraphics[GeoRange -> "World", GeoProjection -> "Albers"]
Mathematica Tips @MathematicaTip
Get a list of US Congressional Districts: EntityList["USCongressionalDistrict"]
Mathematica Tips @MathematicaTip
Diagonals of Pascal's triangle: Transpose[NestList[Accumulate, Range[5], 5]]
Mathematica Tips @MathematicaTip
Find positions of elements in an association: PositionIndex[<|1 -> a, 2 -> b, 3 -> c, 4 -> d, 5 -> c, 6 -> a|>]
残りを読む(9782)

コメント

コメントがまだありません。感想を最初に伝えてみませんか?

ログインして広告を非表示にする
ログインして広告を非表示にする