wolfram-mathematica

Building Application Packages with multple packages and references in Mathematica

安稳与你 提交于 2019-12-07 14:01:28
问题 I am building an application package in Mathematica. The application contains multiple packages and refers to other application packages To set everything up, I have used and followed the application packages instructions of the help section of workbench which is also available at:http://reference.wolfram.com/workbench/index.jsp?topic=/com.wolfram.eclipse.help/html/tasks/applications/introduction.html under the Packages and Applications subsection but... I have implemented and tested single

How to kill slave kernel securely?

梦想与她 提交于 2019-12-07 09:51:51
问题 LinkClose[link] "does not necessarily terminate the program at the other end of the connection" as it is said in the Documentation. Is there a way to kill the process of the slave kernel securely? EDIT: In really I need a function in Mathematica that returns only when the process of the slave kernel has already killed and its memory has already released. Both LinkInterrupt[link, 1] and LinkClose[link] do not wait while the slave kernel exits. At this moment the only such function is seemed to

Match legend and Plot size

你。 提交于 2019-12-07 09:22:43
问题 Please Consider : intense = Reverse[Round[Rationalize /@ N[10^Range[0, 3, 1/3]]]]; values = Range[0, 9/10, 1/10]; intensityLegend = Column[Prepend[MapThread[ Function[{intensity, values}, Row[{Graphics[{(Lighter[Blue, values]), Rectangle[{0, 0}, {4, 1}], Black, Text[Style[ToString[intensity], 16, Bold], {2, .5}]}]}]], {intense, values}], Text[Style["Photons Number", Bold, 15]]]]; IntersectionDp1={{1., 588.377}, {2.15443, 580.306}, {4.64159, 573.466}, {10.,560.664}, {21.5443, 552.031}, {46

Mathematica: How to prevent evaluation of In[-1]?

送分小仙女□ 提交于 2019-12-07 08:45:58
问题 When I'm trying to get last input expression in Wolfram Mathematica 5.2 using In[-1] I get evaluated output: In[1]:= On[In] 2 + 2 In[-1] Out[2]= 4 During evaluation of In[1]:= In::trace: In[-1] --> In[$Line-1]. >> During evaluation of In[1]:= In::trace: In[$Line-1] --> In[2]. >> During evaluation of In[1]:= In::trace: In[2] --> 2+2. >> Out[3]= 4 How can I get the input expression in unevaluated form? 回答1: You could try InString[] In[1]:= 2 + 2 Out[1]= 4 In[2]:= InString[-1] Out[2]= "\\(2 + 2\

How to shade a plot in Mathematica

好久不见. 提交于 2019-12-07 08:20:43
问题 I want to generate a plot like the following I am not sure how to generate a shading even though I can get the frame done. I'd like to know the general approach to shade certain areas in a plot in Mathematica. Please help. Thank you. 回答1: Perhaps you are looking for RegionPlot ? RegionPlot[(-1 + x)^2 + (-1 + y)^2 < 1 && x^2 + (-1 + y)^2 < 1 && (-1 + x)^2 + y^2 < 1 && x^2 + y^2 < 1, {x, 0, 1}, {y, 0, 1}] 回答2: Note the use of op_ in the following (only one set of equations for the curves and

Is there a way to draw a set of lines in mathematica all with the same origin point?

醉酒当歌 提交于 2019-12-07 08:01:08
问题 I have a set of points given by this list: list1 = {{3, 1}, {1, 3}, {-1, 2}, {-1, -1}, {1, -2}}; I would like Mathematica to draw a line from the origin to all the points above. In other words draw vectors from the origin (0,0) to all the individual points in the above set. Is there a way to do this? So far I've tried the Filling option, PlotPoints and VectorPlot but they don't seem to be able to do what I want. 回答1: Starting easy, and then increasing difficulty: Graphics[{Arrow[{{0, 0}, #}]

Mathematica Help Browser from Mathematica 5 in new versions of Mathematica

*爱你&永不变心* 提交于 2019-12-07 07:44:36
问题 I remember that someone from WRI stated in the official newsgroup that Mathematica 7 still has a working old-fashioned Mathematica Help Browser from Mathematica 5 for compatibility purposes. But I can not find the post where the code for invoking it is given. How to invoke and use this legacy Help Browser in new versions of Mathematica ? 回答1: The old browser will show up if you try to look at documentation for packages that were written in the old format. From the main documentation page,

FullSimply Inequalities and then rearranging them in Mathematica 7

£可爱£侵袭症+ 提交于 2019-12-07 06:48:00
问题 I am using Mathematica 7 in the notebook interface and I want to rearrange an inequality so that I get a certain variable on one side. For eg. FullSimplify[x^3+L+r>3x^3+2r] Gives L > r + 2 x^3 However, I want : r < L-2x^3 Is there anyway we can instruct FullSimplify to order variables in a particular way? I am using Mathematica for presentation as well so, the way I arrange the variables is important to me. Thanks SR Edit: I tried Reduce, while that works for this example, it does not work

Is there a way to import the results or data from Matlab to Mathematica automatically?

点点圈 提交于 2019-12-07 06:13:57
问题 Is there a way to import the results or data (such as matrices) from Matlab to Mathematica automatically ? Or is there any way to run a Matlab program first and then run a Mathematica program automatically ? Thanks for any helpful answers! 回答1: There are at least three approaches to tackling this: 'Through' Java, using Mathematica's JLink and Matlab's own Java capabilities. Either program can be run from the command line, execute a script and return output as required. Both programs can run

sometimes I get “this file contains potentially unsafe dynamic content” message in Mathematica notebook

天涯浪子 提交于 2019-12-07 06:09:22
问题 Sometimes, when I open my own notebook, I get the message: This file contains potentially unsafe dynamic content. I do not remember when I started seeing these messages, but it was not long ago. May be 2-3 weeks ago? They do not show all the time. It is my own notebook, that I could close, go sleep, wake up, come open it up again, and I could see the above message, or I could not. Not sure what triggers it. Here is a screen shot of one just happened. I normally just ignore it, and enable