Community RSS Feed
http://community.wolfram.com
RSS Feed for Wolfram Community showing any discussions in tag Education sorted by activeComputational Lichtenberg Figures
http://community.wolfram.com/groups/-/m/t/1065956
![enter image description here][1]
Lichtenberg figures ([https://en.wikipedia.org/wiki/Lichtenberg_figure][2]) can be generated by irradiating e.g. PMMA (i.e. Poly(methyl methacrylate), "acrylic glass") with a high energy electron beam. This way electrons are implanted inside the material - which is an insulator. By a controlled discharge very aesthetic tree structures consisting of tracks from the electrical current can be generated. (This is just one method.)
It is fun trying to imitate this using Mathematica! The idea is simple:
- define a MeshRegion (this is all you need as input);
- convert it to a `Graph` (with preserved `VertexCoordinates` and `EdgeWeight`);
- use `FindShortestPath` to a specific "starting point".
As mentioned there is a simple mapping from a `MeshRegion` to the Lichtenberg graphics:
![enter image description here][3]
The code - a *short* notebook - comes as attachment.
And - due to the universally designed WL functions - it works in 3D without any change of code:
![enter image description here][4]
Best regards -- Henrik
[1]: http://community.wolfram.com//c/portal/getImageAttachment?filename=lichtenberg.gif&userId=32203
[2]: https://en.wikipedia.org/wiki/Lichtenberg_figure
[3]: http://community.wolfram.com//c/portal/getImageAttachment?filename=Lichtenberg-Examples.png&userId=32203
[4]: http://community.wolfram.com//c/portal/getImageAttachment?filename=LichtenberFigure3D.png&userId=32203Henrik Schachner2017-04-19T10:34:55ZCreate a Step-by-step equation solver API?
http://community.wolfram.com/groups/-/m/t/1071854
Ok, the idea seems very weird...I know. I'm a very big noob at Mathematica, I downloaded it 2 weeks ago, but I think that's the most awesome software on earth. Anyway, I know that it's possible to get [Step-by-step solution][1] using Wolfram Alpha like this: `WolframAlpha["x^2=x+1"]`
And I also know that it's possible to deploy an API using the [Cloud Deploy][2] function, but I would like to create an API that when you input: `?q=x^2==x+1` returns a JSON array like this:
{
"1": {
"text": "Solve for x over the real numbers:",
"expression": "x^2==x+1"
},
"2": {
"text": "Subtract x+1 from both sides:",
"expression": "x^2-x-1==0"
},
"3": {
"text": "Add 1 to both sides:",
"expression": "x^2-x==1"
},
"4": {
"text": "Add 1/4 to both sides:",
"expression": "x^2-x+1/4==5/4"
},
"5": {
"text": "Write the left hand side as a square:",
"expression": "(x-1/2)^2==5/4"
},
"6": {
"text": "Take the square root of both sides:",
"expression": "x-1/2==Sqrt[5]/2 or x-1/2==-(Sqrt[5]/2)"
},
"7": {
"text": "Add 1/2 to both sides:",
"expression": "x==1/2+Sqrt[5]/2 or x-1/2==-(Sqrt[5]/2)"
},
"8": {
"text": "Add 1/2 to both sides:",
"expression": "x==1/2+Sqrt[5]/2 or x==1/2-Sqrt[5]/2"
}
}
Or something like this. I know that's it's ambitious, and I don't expect something with tons of options, as I said, I want something simple (if it's possible to do of course :) ). Thank you for taking your time reading my question, and I hope it's possible to do. You can see this as a challenge ;)
[1]: https://mathematica.stackexchange.com/questions/148/get-a-step-by-step-evaluation-in-mathematica
[2]: https://www.wolfram.com/language/fast-introduction-for-programmers/en/cloud-deployment/Arthur Guiot2017-04-25T11:20:34Z