mathematica on CineNeural Mathematics
https://blog.cineneural.com/tags/mathematica/
Recent content in mathematica on CineNeural MathematicsHugo -- gohugo.ioenTue, 25 Aug 2020 15:29:50 +0800Run Mathematica armhf on RaspberryPi aarch64
https://blog.cineneural.com/blog/2020-08/run-mathematica-arm32-on-raspberrypi-aarch64/
Tue, 25 Aug 2020 15:29:50 +0800https://blog.cineneural.com/blog/2020-08/run-mathematica-arm32-on-raspberrypi-aarch64/Why The Mathematica + Python web framework is used to provide an external service platform, which, due to the fact that it is running on the machine, can be used as an external service. ARM Mathematica currently only supports 32-bit v6 v7, but a runtime library for armhf v6 v7 needs to be added to aarch64.
Small TIPS To be able to run Mathematica ARM 32Bit on Ubuntu 20.04 aarch64 systems, a review of the A lot of information about it, and finally the experiment worked, and you can run 32-bit Mathematica on an aarch64 system in the following way.Intro Wolfram Physic Project
https://blog.cineneural.com/blog/2020-08/intro-wolfram-physic-project/
Mon, 10 Aug 2020 18:42:36 +0800https://blog.cineneural.com/blog/2020-08/intro-wolfram-physic-project/Memories I still remember clearly that I was particularly interested in mathematics and theoretical physics when I graduated from junior high school, and studied advanced mathematics and basic physics on my own. After that, I was full of pleasure in exploring physics and mathematics, and every day after entering my first year of high school, I would go to the library after lunch and flip through science and technology magazines, then I participated in the National High School Students Applied Physics Knowledge Contest for the first time, and I remember the final question of the paper I used calculus to solve the problem, and when I got out of the examination room, I didn’t even think that I would get it.Mathematica Json parsing
https://blog.cineneural.com/blog/2020-07/mathematica-json-%E8%A7%A3%E6%9E%90/
Mon, 27 Jul 2020 22:17:09 +0800https://blog.cineneural.com/blog/2020-07/mathematica-json-%E8%A7%A3%E6%9E%90/Today, in the course of work, I need to parse a JSON file to get a keyword, and I’m going to use Mathematica to practice.
``` `` { “apiVersion”: “v1”, “data”: { “voting-keystore.json”: “{ "version": 4, "pubkey": " a94300da6d73a11d8ba72c99dd385b7a9d5043c9ee83ffd4190d89b7677e68d384fbceb556d2a0652e81250ad4b8477d", ""uuid”: "09e5c322-bf6b-401a -b90d-1aef6d57996a", "crypto": {"checksum": {"message": "704e947d244bc8020ef6d6f0844c4aea08af18ecf345bb98ab999df6441377d7\ "function": "sha256", "params": {}}, "kdf": {"message": """, "function": "scrypt", "params": {"p": 1, "n": 32768, "salt": "b891518a06f1d3f67a6d485bba8627f5320497f98c08cb52e4391e50071ac97d", "dklen": 32, "r": 8}}, "cipher": {\" message": "bcd85ce03e82e645e135e13501f717d907c03a23ee1f8dc6bd045c53001719ddc7a5\", "function": "aes-128-ctr", "paragraphs": {"iv\ “: "7f05ffce95bcd0157e520c6b949b90b1"}}}, "path": """}”" }, “kind”: “ConfigMap”, “metadata”: { “creationTimestamp”: “2020-07-25T11:35:24Z”, “managedFields”: [ { “apiVersion”: “v1”, “fieldsType”: “FieldsV1”, “ffieldsV1”: { “f:data”: { “.Mathemtica Machine Learning Convolutional Neural Networks(1)
https://blog.cineneural.com/blog/misc/mathemtica%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0-%E7%A5%9E%E7%BB%8F%E7%BD%91%E7%BB%9C/
Fri, 22 May 2020 17:32:39 +0800https://blog.cineneural.com/blog/misc/mathemtica%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0-%E7%A5%9E%E7%BB%8F%E7%BD%91%E7%BB%9C/Convolutional neural networks About convolution can be abstracted into mathematical expressions:
I can represent the matrix of an image, K is the convolution kernel
The computational layer of the convolution Object Recogition with Gradient-Based Learning
input layer Input Layer Convolution Layer Conv Layer Restricted Layer RELU Layer pooling layer Pooling Layer full connected layer Creating a network Basic learning to distinguish between dogs and cats (* Create model *) myCatDogModel = NetChain[{ ConvolutionLayer[32, 3], Ramp, PoolingLayer[2, 2], ConvolutionLayer[64, 3], Ramp, PoolingLayer[2, 2], FlattenLayer[], 128, Ramp, 2, SoftmaxLayer[]}, "Input" -> NetEncoder[{"Image", {224, 224}, ColorSpace -> "RGB"}] , "Output" -> NetDecoder[{"Class", {"cat", "dog"}}]] (* Collect samples, training set and test set *) (* Convert data sets to Association format *) dataSetsConvert[dateSets_] := Module[ {}, File[#] -> StringSplit[FileBaseName[#], ".Epidemic Modeling
https://blog.cineneural.com/blog/misc/epidemicmodeling/
Mon, 06 Apr 2020 20:19:52 +0800https://blog.cineneural.com/blog/misc/epidemicmodeling/SIR Modeling The SIR classical model is mainly used in the field of infectious diseases to predict future trends in the number of infections.
S[t] denotes susceptible susceptible population
I[t] denotes infected population already infected
R[t] indicates recovered recovered population
Reference:
MathWorld:
SIR Model Kermack-McKendrick Model Kermack-McKendrick Model The original Kermack-McKendrick model was designed to account for changes in the number of people infected over time, like the plague that occurred in 1665-1666 and the cholera that occurred in 1865.Lotka Volterra Model
https://blog.cineneural.com/blog/misc/lotka-volterra-%E6%A8%A1%E5%9E%8B/
Fri, 03 Apr 2020 13:59:18 +0800https://blog.cineneural.com/blog/misc/lotka-volterra-%E6%A8%A1%E5%9E%8B/Lotka Volterra 方程 维基百科解释: Lotka Volterra
该方程组描述了 捕食系统模型 微分方程为:
dx/dt = Axy - Bx dy/dt = Cy - Dxy => dy/dx = (Cy - Dxy) / (Axy - Bx) (1.1) {A, B, C, D} 均为模型系数 对微分方程(1.1)求解为: W 为Lambert W function
当系数为 {A -> 0.1, B -> 2, C -> 4, D -> 0.4, x -> {1,30}} y[x] 由于我们需要获得 x,y 关于自变量时间t，在模型系数{A,B,C,D}下的模型图，所以在Mathematica中对该方程组定义和设置模型系数 求该方程的数值解 创建Modelica模型 在0时刻 x[0] = 10, y[0] = 5
model = CreateSystemMod["Hare", Join[predatorPreyEq, {x[0] == 10, y[0] == 5}], t, Association[{"ParameterValues" -> params}]] 建模 Modelica 模型源码Foundations of Modelica systemmodeler with Mathematica (1)
https://blog.cineneural.com/blog/misc/modelica%E5%85%A5%E9%97%A8/
Mon, 30 Mar 2020 16:31:03 +0800https://blog.cineneural.com/blog/misc/modelica%E5%85%A5%E9%97%A8/Why study Modelica I have seen a book “Model Thinking” before, and this time it happens to be in the CoVid-2019 disease ravaging the world, by chance I saw the prediction model SEIR about epidemiology, I took this opportunity to start studying mathematical models, and decided to pick up the mathematical analysis, ordinary differential equations, partial differential equations, differential geometry and other courses I studied in college. I came across the language Modelica, and since I had been studying Wolfram Mathematica, I was quite fond of SystemModeler of the Wolfram product line, so I started to buy the home edition of SystemModeler and purchased a book “Introduction and Improvement of Modelica Multi-Domain Physical System Modeling”.