91 reputation
4
bio website homepage.cem.itesm.mx/…
location Mexico
age 43
visits member for 7 months
seen 48 mins ago
stats profile views 14

Physics and Mathematics teacher at Tecnologico de Monterrey, Campus Estado de Mexico, near Mexico City. Certified Mathematica Instructor.


May
16
comment Strange Error in NDSolve
This kind of error can happen when in your list of equations deqs you write only one equal sign = instead of two ==, therefore you make an assignment; then you realize your error, change the single = to two ==, but the error remains because Mathematica has not forgotten the assignment, even if you do not see it anymore. Therefore, besides correcting the code, it is a good idea to restart a fresh mathematica session before evaluating the corrected code
Apr
30
comment Plotting derivatives of B-splines
Is this what you want? knots = {0, 0, 0, 0, 0.2, 1, 1, 1, 1}; e1 = Evaluate[ Table[D[BSplineBasis[{4, knots}, i, x], {x, 2}], {i, 0, 3}]]; e2 = Evaluate[ Table[D[BSplineBasis[{4, knots}, i, y], {y, 2}], {i, 0, 3}]]; Plot3D[ e1*e2, {x, 0, 1}, {y, 0, 1}]
Apr
18
comment How can I draw a 3D cross-section of a 3-torus embedded in 4D Euclidean space?
I find very useful to solve this kind of problems by solving first a similar question with one dimension less, for example a 2D circle "floating" in 3D, and find (draw) its intersection with an arbirary plane. The idea is try to solve this other problem with techniques that can be easily extended to more dimensions. Hope that helps for the moment.
Apr
12
comment Creating hexahedral finite elements in Mathematica
Regarding meshing, most of IMS was developed before Mathematica version 6. At that time the graphics in Mathematica were very different. Now, with the use of GraphicsComplex and meshing functions, you can generate I plot like this RegionPlot[-1 <= x <= 1 && -0.5 <= y <= 0.5 && (x - 0.4)^2 + y^2 >= 0.1, {x, -1, 1}, {y, -1, 1}, Mesh -> All] which looks just like an example for a FEM meshing program, I know that mesh was designed for visualization, but some IMS commands could be designed to use that mesh and get some results, going in the direction of the NDSolve-like automation
Apr
12
comment Creating hexahedral finite elements in Mathematica
Here is the link to the document I use to give an introduction to FEM (in Spanish). IMS is used after page 25, before that standard Mathematica is used to introduce some basic FEM concepts homepage.cem.itesm.mx/jose.luis.gomez/data/mathematica/…
Apr
12
comment Creating hexahedral finite elements in Mathematica
Hello Oliver! Yes I know IMS does work in version 8 and 9, I have use it in small, introductory lectures to FEM, however I thought I should warn a new user, specially since the documentation of IMS does include some non-IMS legacy/obsolete Mathematica commands. I do have some ideas about a possible updating of IMS: 1)To incorporate (at least some more) meshing inside Mathematica 2)Maybe to replace imsNexus with GraphicsComplex, or to integrate them somehow 3)To build higher-level commands, folloing the automation philosophy of Mathematica (aiming to a NDSolve-like command)
Apr
11
answered Creating hexahedral finite elements in Mathematica
Apr
8
awarded  Autobiographer
Apr
4
comment Functions that creates symbol in a specific context
Really? Maybe if you do a ClearAll[f], or restart a new, fresh Mathematica session? or give the function another name? I am guessing your old definition for f is in conflict with the one I propose. Notice the idea is the same as the one by Leonid, give the name as a string "myvar" instead of myvar
Apr
4
answered Functions that creates symbol in a specific context
Apr
3
awarded  Editor
Apr
3
revised Programming a numerical method in the functional style
added 19 characters in body
Apr
2
answered Programming a numerical method in the functional style
Mar
14
awarded  Supporter
Feb
26
comment Simplify matrix algebra
You might find useful our Quantum Mathematica add-on (it is free) for doing these kind of operations, see for example homepage.cem.itesm.mx/jose.luis.gomez/quantum/v7algebra.nb and homepage.cem.itesm.mx/jose.luis.gomez/quantum/v7triangles.pdf I hope this helps.
Oct
18
awarded  Teacher
Oct
18
answered Examples of (well coded) packages using custom notation