0
votes
0answers
52 views

Is it possible to calculate with declarations only?

simple Example: maximize $u(x), x$ solution would show constraints: $\frac{\partial u(x)}{\partial x} = 0$ $\frac{\partial^2 u(x)}{\partial x} < 0$ etc... or do I always have to explicitly ...
3
votes
3answers
389 views

How to simultaneously change the color and thickness in ContourStyle?

When plotting contours with ContourPlot, one can use the option ContourStyle to change the contours of the plot. With the ...
0
votes
0answers
42 views

Addition of all elements of two sets with each other [duplicate]

Let $S_1=\{a_1,a_2,\ldots,a_m\}$ and $S_2=\{b_1,b_2,\ldots,b_n\}$ be two sets. I want to list all $a_i+b_j$ for each $1\leq i\leq m$ and $1\leq j\leq n$ in a set. Is there a commend in mathematica for ...
13
votes
5answers
894 views

Solve symbolically a transcendental trigonometric equation and plot its solutions

I currently have the equation below for a beam with a hinge at various locations, the variable a can vary between 0 and 0.5. $$ Tan\left( {a\sqrt \alpha } \right) + Tan\left\{ {\left( {1 - a} ...
0
votes
1answer
109 views

Why won't mathematica plot the 3D Contour of this function?

I want to find the 3D contour of the equation1: ...
4
votes
2answers
137 views

Get part of lousy data

I want to get part of large data. some part of this data is as follows: ...
1
vote
1answer
159 views

Legend in a Show

I am trying to put some legends on a graph but I am not able to do that. This is my code: ...
0
votes
2answers
121 views

How can I speed up this code?

There are 4 variables in this multiple sum, and only 2 are used. This question has the similar scenario as the previous one How can I speed up this code with multiple sum?, but the calculation ...
5
votes
2answers
164 views

Format-Size-Larger/Smaller shortcut disabled in M10?

It seems that the keyboard shortcuts for enlarging/reducing the font size (ALT+= / ALT+-) don't work anymore in M10 as it did in M9. If I select the text (or code) inside a cell they work. But if I ...
9
votes
2answers
461 views

Does FindFit support complex numbers or doesn't it?

Inspired by this previous question: Findfit doesn't give the good fit; Changing the starting values will not change the results. Consider the following complex-valued dataset. ...
5
votes
3answers
281 views

Command to insert item into list

Is there a command to insert an item into a list such that they form pairs? In other words to take InsertObject[{a,b,c},d] which will output ...
1
vote
1answer
61 views

How to make a discretized NMinimize more precise

I am using Mathematica for physics research and I want to minimize a Hamiltonian equation with respect to two variables (I have also discretized the problem). I have a single constraint. When I plot ...
12
votes
1answer
193 views

possible bug in Mathematica TeXForm? Generating \left\left

I asked about this in the TeX chat. It seems Mathematica generate invalid Latex in this example. ...
0
votes
2answers
160 views

Expand 2f[x] to f[x]+f[x] (Simplify sums of ArcTan)

I'm trying to simplify an expression with sums of ArcTan, for which I've written a transformation rule that works for simple sums, so that ...
35
votes
2answers
927 views

Why is the new PositionIndex horribly slow?

This issue has largely been mitigated in 10.0.1. New timings for the final test below are: ...
2
votes
0answers
155 views

VoronoiMesh for 3D points

I believe that this is a doc error in V10 (this was programmed to be but not implemented). The new VoronoiMesh should work for 3D set of points. The ...
1
vote
1answer
105 views

Warning and Errors during Compile

I defined a compiled function cf = Compile[{{x, _Integer}, {n, _Integer}}, z = (n^x); Binomial[n, #]* StirlingS2[x, #] *(#!)/z & /@ Range[x]]; and I ...
7
votes
3answers
541 views

Normal // Association // Dataset workaround for some user query operators

Given example tabular data (ie, with rows and columns, or "data frames") ...
4
votes
2answers
327 views

How to get a uniformly distributed list of points from a B-spline function [duplicate]

I created a spline function from a list of points and made a plot as follows: ...
0
votes
2answers
174 views

Poincaré Section

I have encountered somewhat the same problem as here. But with the equations, $x'(t) = p(t), p'(t) = - x(t) - y(t), y'(t) = q(t), q'(t) = - y(t) - x(t)$ My code is, ...
3
votes
3answers
333 views
0
votes
1answer
56 views
1
vote
1answer
238 views

DeleteCases that match partially [duplicate]

Say I have a list of strings L , L2= "some_text-to-delete" and I want to delete all the Li that match with "text" or "delete" DeleteCase only gives the ones that match exactly...
-1
votes
3answers
102 views

How do i import a list of files, choosing the name

I have this list of files, i'm using FileNames[{"*.txt"}, NotebookDirectory[]] to import it, but i just want the ones without inelastic on the name. How can i select just by the name? Thanks ...
9
votes
0answers
119 views

Autocomplete of non-global functions

In Mathematica 9 and 10 they added autocompletion. Out of the box this works great, but when I set the CellContext to "Notebook" instead of the default "Global" (following this) it no longer ...
2
votes
3answers
83 views

Reduction of repetitive calculations in Table

If I generate two tables inside a function which are function[n_, x_, y_]:=( table1 = Table[i* x/n^x, {i,1,n}]; table2 = Table[i* y/n^y, {i,1,n}]; ) where ...
9
votes
1answer
83 views

Using PatternSequence on its own in ReplaceAll?

Say I have this list: list = {0, 1, 2, 0, 1, 3, 0, 1, 4} and say I want to remove consecutive sequences of 0 and 1. I'd normally go for this: ...
0
votes
1answer
87 views

A problem with “RiccatiSolve::ncsol: Cannot compute a stabilizing solution to the matrix equation ”

I have a SSM ( State Space Model ) and I want to calculate its optimum gains unisng LQOutputRegulatorGains[] command. When I run the code, it solves the equations ...
9
votes
3answers
173 views

Setting and changing MetaInformation for arbitrary objects

I work with a lot of dynamic data in {{date, datum}. . .} format, ...
2
votes
1answer
97 views

Kernel quits on closing notebook

Mathematica quits (exits) when the single notebook I'm working on is closed. How to prevent this? Win7, v10 Mathematica
4
votes
1answer
142 views

Hungarian Algorithm using BipartiteMatchingAndCover Function

I have a bipartite graph with two sets of vertices. ...
1
vote
1answer
134 views

Distance between data and curve

I have two datasets: ...
0
votes
4answers
139 views

Using levels in MapIndexed

I am trying to use MapIndexed to manipulate a matrix of data but I am having trouble getting the levels parameter to work the way I would like. Suppose that my data ...
12
votes
1answer
287 views

Bug in handling backslashed Cyrillic symbols in v.10.0.0?

UPDATE: In version 10.1.0 the described bugs are fixed. Now both the inputs "\б" and "\\б" are interpreted as ...
0
votes
0answers
123 views

Optimizing a functional using variational calculus

Here I am, trying to get the trajectory $(x(t),y(t))$ that will minimize the following Lagrangian (i.e. the integrand of the functional) between $(-1,-1)$ and $(-1,y_{eff})$ where $x_{eff}$ is defined ...
11
votes
1answer
265 views

Dispatch not behaving like a normal expression in Mathematica 10

In Mathematica 9, I used to be able to do rules = Dispatch[{'a' -> 1, 'b' -> 2}] rules[[1]] to extract the rules from ...
1
vote
1answer
85 views

Save plot by pressing on button

I want to save a certain graphics by pressing a button. Thinks work fine for something like this ...
2
votes
2answers
92 views

Can I change the font of all elements in my barchart with one property?

I have this BarChart: created with this code: ...
2
votes
2answers
365 views

How to set an absolute path name using SetDirectory?

I tried the following: Directory[] /Users/John SetDirectory["Library/Mathematica"] ...
21
votes
1answer
512 views

Shorter syntax for Fold and FoldList?

I find it tedious to write out the following: a = {1, 2, 3, 4}; Fold[f, First @ a, Rest @ a] f[f[f[1, 2], 3], 4] It ...
3
votes
1answer
110 views

How can I make labels with units and then position the label to the right of a bar?

I want to add units to my numbers to display them as the labels of my chart. I tried this: ...
13
votes
2answers
575 views

Where is the “Function Navigator” and “Virtual Book” gone?

Under V9 "Help" was a Item each for "Function Navigator" and "Virtual Book" to find and one could work with it. Under V10 these Helpers are gone. Although under Documentation/English/System the ...
3
votes
1answer
3k views

A .NET exception occurred: System.IO.FileLoadException:Could not load file or assembly

Note: Answering my own question as a wiki for future reference. When loading a .Net DLL: ...
7
votes
1answer
671 views

Mathematica 10 crashes on copy/paste

Mathematica 10 crashes in the following (simple) situation: FormulaLookup["gas"] This command will produce a long list of possible formulas. Then I type the ...
4
votes
1answer
147 views

Multiple down-values with exactly the same lefthand side

I was working on an answer to this question, when I was sidetracked by what I bring up here. I wanted a function, which when given a string representing a binary number, would convert the string to a ...
2
votes
1answer
50 views

Why TeXForm[] do not display to notebook if followed by OutputForm[] in same cell?

Can someone please explain to me the logic of this: In one cell, when writing ...
16
votes
3answers
411 views

Are there any tutorials on version 10 notebook templating and report generation? Are there missing docs?

I am trying to understand the new templating in version 10. While there is a general documentation page with links to docs for each new function, so far I am unable to find any report generation ...
0
votes
0answers
50 views

how to create a slope field in mathematica? [duplicate]

Anyone have any good resources for learning mathematics, already sufficient in JAVA. not math... only in calc 2. I want to plot the slope field of ...
11
votes
1answer
136 views

Is there is a design problem or documentation problem with FirstCase?

In version 10 the new function FirstCase can take up to 4 arguments (plus option). The third argument is a default value to be returned if there is no match: ...
5
votes
3answers
382 views

How to draw timing diagram from a 0 and 1 string list

What is the most elegant way to draw a timing diagram from a "0 and 1" string list? Here I started to draw the clock pulse diagram, and like to continue to draw the timing diagram for a given 0 and 1 ...

15 30 50 per page