![]() ![]() Your example in the first half, where you can use Integrate, simplifies down to Integrate. You do not have any outright syntax errors, which is better than many questions posed here, but you have integrals of lists of constants that you transpose into matricies only then to turn back into vectors by applying parts of the row to the rest of the row. I have made a serious effort to go through your notebook three times, each time starting from scratch trying to decompile it back into something much simpler that I can understand and thus figure out where the error is. Would it be possible for you to make the second half of your notebook significantly less complicated? I am sure there is a correct and perhaps an easier way to accomplish this task, but the question is what it is. All I need is the final array of right numbers. But then the question is, given 2 remaining integrals, how to build a final array of numbers to plot. I can numerically integrate it given that d was a dummy for t which goes from 0 to 2 as you recall. This is for my research, where the primary problem is that in place of (y-d) I have something pretty-complicated, which is “non-integrable”. I would really appreciate if you could help. I have performed a sequence of simple steps to get to the “finalnew”, but you can see that this is a wrong array, because if I set t=0.01, for example, in “final” I would get 0.000224001, which is not what the 2nd element in “finalnew” array is. ![]() Let us just pretend that the reason is that this thing is “non-integrable”. However, suppose we want to plot the “final” for "all" possible values of t, without being able to analytically integrate the first inner integral, i.e. (Step size 0.01 would be precise enough for my purpose). Then I can easily take various values of t from that interval, plug them into the “final” answer and plot if I need to. Suppose also I know that t is a time variable which varies from, say, 0 to 2. (I deliberately proceeded in simple steps to keep a better track of the individual answers). Clearly, it is straightforward to accomplish this task (please see the first 3 steps in the code attached (Example2.nb files) and the “final” answer). Integral from 0 to t, dm ,Īnd suppose we know that b = 3. Suppose we have to evaluate the following: I have been trying to crack one problem in Mathematica, but I keep getting a wrong answer probably because I have something either fundamentally wrong analytically or code wise. Send feedback or bug reports to szhorvat at or open an issue in the tracker.“Non-integrable” multiple integrals for Mathematica However, if you find it useful, feel free to drop me an email. MaTeX was primarily created for my own needs. Added FontSize option (now requires the lmodern package).MaTeX output is now perfectly aligned with Mathematica text. Bug fixes and other compatibility fixes: works with XeTeX and behaves better on Windows.Minor bug fixes and compatibility fixes.Syntax highlighting for MaTeX functions (added SyntaxInformation).MaTeX now attempts to automatically detect the location of Ghostscript and pdflatex on first run.Windows: Ensure that auto-detected paths do not use / as path separator.Windows: Work around Mathematica bug causing MaTeX to fail when the current directory has special characters in its name.HoldForm, to reproduce the older behaviour ![]() <<MaTeX` will always load the latest installed MaTeX that is compatible with your version of Mathematica.Ī list of all installed versions can be retrieved using Open the documentation center and search for "MaTeX" to get started.Ī newer version can be safely installed when an older version is already present. the one with the name ending in c: gswin32c.exe or gswin64c.exe. ![]() Note: On Windows systems use the command line Ghostscript executable, i.e. If auto-configuration fails, it will display instructions on how to configure the path to the pdflatex and Ghostscript executables manually. MaTeX will attempt to auto-configure itself when it is loaded for the first time. If you use an older TeX distribution that doesn't, please obtain a recent Ghostscript from Richard Koch's page.Įvaluate <<MaTeX`. On OS X, MacTeX 2015 and later already include a compatible version of Ghostscript. Make sure that a TeX system and Ghostscript 9.15 or later are installed.įor Windows and Linux, the latest Ghostscript is available from its official download page. The most convenient way to obtain the path to a file is Mathematica's Insert → File Path. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |