0
votes
0answers
11 views
0
votes
0answers
17 views

Saving a notebook before a crash

On the MacBook Pro, Command+S saves the notebook. So, every few minutes, Command+S is invaluable. What do other folks do? For example, in TexShop, when I compile my LaTeX code, the file is ...
1
vote
1answer
30 views

Shadowing of optional function arguments?

I am trying to define two different packages that process some information in a different way. These packages have functions into them with optional arguments. The names of the optional arguments ...
0
votes
0answers
18 views

Is there a function equivalent to rewrite function in Sympy

Sympy provide rewrite function to rewrite expression in terms of other functions. ...
0
votes
1answer
30 views

How to count column occurrences in a matrix?

I have a matrix of data, and I want to count the number of columns that match, and have some way to organize them by frequency. But I don't want to count the entire column, but consider the matrix ...
1
vote
1answer
26 views

RegionPlot3D Empty

I am attempting to cut out holes in a sphere, circumscribed around a regular tetrahedron. To do so I define some points (p1 through p4 are the vertices of a tetrahedron) ...
0
votes
0answers
14 views

Why does the degree symbol disrupt this FrameLabel?

This plot Plot[x, {x, 0, 1}, FrameLabel -> {"x", "temperature / \[Degree]C"}] displays beautifully, but exporting to PDF ...
3
votes
2answers
85 views

Tube vs. Cylinder

What is the practical difference between plotting Tubes and Cylinders? The documentation for each describe a 3D tube/cylinder around the line between 2 points....they seem identical. However, there ...
0
votes
1answer
32 views

Translating and Rotating a Region

I'm having an issue that is related to an old question (How do I plot a filled cylinder in 3D?), but it's an extension of it. The previous question details how to make 2D slices of a 3D region with ...
8
votes
6answers
158 views

Deleting Lonely Numbers From a List

Suppose I have a list of integers like so: list = {1,2,5,6,8,10,11,12,14,16,17,18,19}; I'd like a function that will take this list and return a new list with ...
0
votes
0answers
11 views

list of graph fucntions that work correctl with edge weights?

Unfortunately I've found a few bugs in v10 surrounding the use of EdgeWeights. Is there a complete list of functions that have been tested and are supposed to work correctly with them?
0
votes
0answers
10 views

CUDA problem: CUDALink experienced an unknown error

I found the document here just after I have posted it, but I will leave the question open in case people want to discuss this a bit more. I was just trying out my GPU, so I used the code here. My ...
1
vote
1answer
20 views

Avoiding overlap in rendering of GraphPlot

I'm trying to visualize some 'graphs' (i.e. the mathematical objects with nodes and edges) using GraphPlot[]. I am defining the nodes using objects such as ...
0
votes
0answers
14 views

How many kernels to set based on CPU?

Looks like 4 kernels are enough? My CPU is i7 4790K as given here. Does it also depend on the tasks and the codes? My understanding is that regardless what the benchmark says, I could always use ...
1
vote
1answer
31 views
0
votes
0answers
19 views

How to plot python matplotlib plots from mathematica

I have a python matplotlib plot (a line graph)and I have another mathematica plot (a line graph). They have the same x-axis and y-axis. However they have different style (fonts, color, line thickness, ...
0
votes
0answers
32 views

Solve defined integration problem

How can the following be solved for ln(L_i/L_f) ? Limits are in good place in this problem. ...
0
votes
0answers
28 views

Referring to arguments in nested functions

I am interested in executing the following command but don't know the proper syntax to distinguish between nested arguments, here at the Select[] and Map[] levels. For example, ...
1
vote
0answers
38 views

Analogue of Maple's `identify` command in Mathematica [duplicate]

In Maple there is a useful command identify that tries to find a closed form expression based on its numeric approximation. As far as I know there is no built-in ...
1
vote
2answers
34 views

Is there any way to pull interest rates, or an interest rate curve, with FinancialData[]?

Let's say I want to know the 5 year swap rate and the 10 year swap rate right now, is there a way to get this with FinancialData[]?
2
votes
0answers
26 views

Region Intersection for MeshRegion objects embedded in 3D

How can I create a logical intersection of MeshRegion objects that are three-dimensional? The RegionIntersection function will ...
0
votes
0answers
41 views

Can't call function from other function

I'm trying to calculate vector projection of vectors. Trouble is that Dot operator doesn't work when I call mine Ort function. What can be problem? ...
1
vote
1answer
40 views

Grouping large dataset across a large range of values

I have a large data set that I would like to group based upon the quantiles of one specific column. My test data set is about 2.1 million rows by 9 columns (the actual data set will be much larger). ...
0
votes
0answers
29 views

NDSolve with shooting method

Here are my equations: ...
0
votes
0answers
35 views

Compute Mean and Variance for Random Choice

I have data ...
0
votes
0answers
29 views

Integration problem: lrgexp

I want to calculate the following integration but it gives the error PolynomialGCD::lrgexp: Exponent is out of bounds for function PolynomialGCD. The code is: ...
0
votes
2answers
52 views

Do loop not working as expected

I am trying to get rid of data in a list. Every three elements I want to delete. Example below: ...
0
votes
2answers
41 views

Maximise a function over one parameter that is continuous, and one that is discrete

I have a function that I would like to maximise with respect to two parameters: one continuous, another which is discrete. A simple example of this might be the following: ...
1
vote
1answer
31 views

i need a swap mutation code (genetic algorithm) in Mathematica?

I'm working on GA coding to optimize the locators position in fixturing system to minimize the error in precision manufacturing.I need a code for mutation (genetic algorithm) in Mathematica. Here, I ...
0
votes
1answer
21 views

Manipulating the output of EllipsoidQuantile

I am trying to manipulate the output of EllipsoidQuantile to find the area in the next line. I can easily find the 95% confidence interval and this generates an ...
0
votes
0answers
22 views

6 columns output file

I want to create a 6 columns data file with Mathematica, so I tried the following code: ...
0
votes
1answer
33 views

Construct a function whose definition depends on the values of its arguments

I have to evaluate the components of a 6x6 matrix $S$. This matrix depends upon the semi-axes of an ellipsoid $a1$, $a2$ and $a3$. For various specific cases (sphere, prolate spheroid, oblate ...
1
vote
2answers
46 views

Derivative of Continuous and Differentiable Piecewise function is indeterminate

I'm attempting to analytically stitch together two linear functions with two quadratic functions. The function I'm considering, then, is a piecewise function consisting of 4 parts. Below are the ...
0
votes
2answers
49 views

How can I plot the following set?

I have a question: How can I plot the following set $$G:=\{(x,y,z)\in\mathbb{R}^3|x^2+y^2\in[0,4],z\in[0,3]\}?$$ Thank you for your help!
0
votes
0answers
13 views

Common subexpression elemination of complicated function by nesting using HornerForm and Experimental`OptimizeExpression

I want to have common subexpression elimination of comlicated functions where the elimination is done by factoring out the expressions. The result is not to be digested by a compiler, it should remain ...
0
votes
0answers
20 views

create subsubsubsection in Standard Report Style

I am working with Standard Report Style. When I press for instance Alt+5 a Subsection is generated. When I press Alt+6 Subsubsection is generated. What I want is a creation of something like Alt+foo, ...
1
vote
0answers
21 views

How can I stop PlotRangePadding from cutting off points in a ListPlot?

When I perform a 2D plot and want to highlight specific spots in the plane, ListPlot seems like a good idea. However once I want to get rid of the padding, my points are getting cut off. This is ...
0
votes
0answers
21 views

How to generate a list 'without index' (i.e. {i1, i2, i3…} instead of {i[1], i[2], i[3]…}) [duplicate]

What are ways to generate a list of the form (and arbitrary length)? [i1, i2, i3]
1
vote
3answers
61 views

NSolve returning an empty set

Dear Mathematica experts. I am a chemist looking to use Mathematica to solve a system of equilibrium equations. I have a system of 8 polynomial (I think) equations with 8 unknowns, yet when I use ...
1
vote
1answer
47 views

Transposing X and Y on a plot [duplicate]

This question has appeared in many forms online, but none directly apply to my problem. I have a quite complicated, albeit bijective function of the form ...
0
votes
1answer
33 views

How to swap tensor indices without permutation?

Say I have a tensor of rank R, How to swap $i^{th}$ and $j^{th}$ tensor index? I do not want to use TensorTranspose because it requires to write down the entire permutation, i.e. ...
1
vote
0answers
26 views

Alt+Gr issue with Mathematica 7 on linux

I have the same issue as described in https://matteochinazzi.wordpress.com/2010/04/12/mathematica-alt-gr-issue-under-linux/ So basically whenever I use AltGr to write [ or ] in Mathematica, it ...
3
votes
0answers
22 views

VertexDelete not working on graph with VertexWeight

Good afternoon, I have observed an "unexpected behaviour" with VertexDelete and a graph with vertex weights. This is a minimal working example: OK ...
4
votes
1answer
58 views

Naming conflicts with Dummy variables in several packages conflicts

I'm using several packages in a notebook. In each packages there is functions defined with dummy variables. When I load the several packages in my session, i've got a warning message: ...
6
votes
2answers
245 views

Defining quantum-mechanical Bra and Ket operations

I have the following ket in the Fock basis: $\vert3, 0 ,1\rangle$, where each entry defines the number of photons in a particular mode and can take any one of the following numbers: 0, 1, 2, 3. As a ...
0
votes
1answer
14 views

Minimizing using indices, error: Part::pkspec1: The expression cannot be used as a part specification

I want to use Minimize where the variables to minimize are indices pointing into an array. Here a MWE that hopefully shows what my problem is. ...
0
votes
0answers
47 views
0
votes
0answers
35 views

solving an inequality [on hold]

I guess this is rather trivial. I want to solve the following inequality 1/(2 n + 2)! < 10^(-6) What I did is ...
3
votes
1answer
97 views

How to solve a conditional inequality?

I am trying to use Mathematica to solve a conditional inequality. Find all (real) numbers $a$ and $b$ such that $|a| + |b| \ge 2/ \sqrt{3}$ and for any real $x$ the inequality $ |a\sin x + b \sin ...
2
votes
0answers
23 views

Obtain $\TeX$ code as in `StandardForm`

This is a question very close related to Breaking up long equations in TeXForm. Last time, because @Adam doest not present a clear goal for this problem, as stated by Massimo Ortolano there's no ...

15 30 50 per page