All Questions

9,192 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
12
votes
0answers
174 views

Unix-like reference to parent and root Association?

Is there a syntax or function to reference parent and root when querying nested Associations similar to Unix' ".." and "/", eg "cd ../../mydir". ? Here's a typical application of the root construct....
12
votes
0answers
207 views

Is it possible to search the web by image from Mathematica?

Is it possible to perform a web search based on an image input? There are several services that provide this: Google, Bing, TinEye, and maybe others. I am not sure which can be accessed ...
12
votes
0answers
694 views

Incorrect Display on Linux (+HiDPI)

I have Linux on a HiDPI laptop, and after first installing Mathematica, the default font size is far too small: After searching for a few solutions, this can be fixed by either changing the ...
12
votes
0answers
344 views

After editing a file Mathematica 10 interprets […]^2 as […(])^2

Bug introduced in 10.0 and persisting through 10.2 or later This is a very weird bug and I don't really know how to reproduce it, so I'll just copy-paste the whole code ...
12
votes
0answers
219 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" ...
12
votes
0answers
364 views

Simplify and Sqrt, inconsistent behavior?

I have encountered some problems when using Simplify with expressions containing a square root and isolated a following test case ...
12
votes
0answers
238 views

HorizontalGauge causes problem with ScalingFunctions -> “Log”

Bug introduced in 9.0.0 and persisting through 11.0.1 or later HorizontalGauge is new in 9.0.0 I am trying to use ...
11
votes
0answers
174 views

Solving CROSS TIES automatically

A clever puzzle in the Sunday New York Times Magazine is CROSS TIES (by Will Shortz). You are given a $5 \times 5$ grid with some squares filled with letters, others grayed out, and yet others white. ...
11
votes
0answers
148 views

Prevent Mathematica from adding ExpressionUUID to cells

There are some well-known options for preventing the front end from adding "unnecessary" stuff to .nb files when keeping them e.g. in a git repository: CreateCellID,...
11
votes
0answers
408 views

Solving Maxwell's Equations in Mathematica

For the sake of demonstration (for my students) and practice, I wanted to numerically calculate the electric and magnetic field (3D) for a sphere of uniform density moving slightly to the right and ...
11
votes
0answers
102 views

What does that output of Sum mean?

I made the computation ClearAll["Global`*"]; r = Sum[1/2^(k*n/(k + n)), {k, 1, 2*n}, Assumptions -> n ∈ Integers && n > 0] and got ...
11
votes
0answers
104 views

Why does the kernel quit if I want to use minus a sum that I converted from a list?

Using Mathematica 11 when I define a list yy = {x*43, 32*y}; and then convert it to a sum yy[[0]] = Plus; yy I get, as ...
11
votes
0answers
108 views

LibraryLink: How to read from a Mathematica stream in C?

Mathematica has a flexible streams interface. Functions like Read can read from a "stream" that may be backed by a file, pipe, string, network resource, etc. We can ...
11
votes
0answers
147 views

Mathematica lexer: Symbols and UTF-8

Did you ever wonder why here on our site, there is a highlighting difference between f[argX_] := 1; and f[argα_] := 1; ...
11
votes
0answers
146 views

Code request: Make “copy formatted code” bulletproof

With the GeneralUtilities`PrintDefinitions functions comes a usable code formatting engine. On this site, most of the time we share code. I believe it would be ...
11
votes
0answers
163 views

Alternatives and the Flat attribute

When a head has the attribute Flat then the pattern matcher is able to pick out a sublist of its arguments, even though the structure doesn't match: ...
11
votes
0answers
416 views

How to wrap a crumpled paper over a surface?

My initial question was about the making of a crumpled paper. After reading this article suggested by J.M. and little more browsing (kind of random walk you do on a Saturday) I thought about expanding ...
11
votes
0answers
535 views

How to speed up calculations on big symbolic matrices?

this is my first time posting something on a community of the StackExchange platform, so please feel free to correct me if I'm doing something wrong. :) Additionally you should probably know that I'm ...
11
votes
0answers
426 views

How to read and write data to open socket?

I am trying to open connection with socket. I am using this: ...
11
votes
0answers
261 views

Creating compiled search TRIE file for argument string completion

I'd like to generate a compiled search TRIE file (like those found in $InstallationDirectory\SystemFiles\FrontEnd\SystemResources\FunctionalFrequency\) to help ...
11
votes
0answers
308 views

Customized StepSize control in unconstrained gradient-descent optimization

I have a type of minimization problem I frequently solve that involves warping a large 2D triangle-mesh (~25,000 vertices) to fit a model. In the mesh, vertices carry the empirical measurements (each ...
11
votes
0answers
847 views

How to bundle JLink with Java application using apache maven

The context: I am planning to visualize some results from my MMA code using D3.js. So I wanted to make a simple REST api using the light weight SparkJava framework. Given my fairly nonexistent ...
11
votes
0answers
871 views

DSolve returns an answer that is not a solution

Investigating DSolve misses a solution of a differential equation, I came across this odd behavior of DSolve. The following DSolve command returns an answer to the ...
11
votes
0answers
167 views

Mathematica is getting slow when repeatedly calling an external program

I found a strange phenomenon that Mathematica is getting slow when I repeatedly called an external program by using ReadList. For example, the following code will display a significant increase of CPU ...
11
votes
0answers
351 views

Mathematica and POV-Ray workflow: ListContourPlot3D

I have the following function describing a molecular electronic Orbital. ...
11
votes
0answers
334 views

Efficient image stacking

I have a list of lists of images that I would like to stack and create mean images for each list of images. Images are .jpg files 2592x1944 pixels large. Each list ...
11
votes
0answers
296 views

How to make Graphics3D with multiple lighting sources being rendered faster

I have a very "precise"(through setting "SpherePoints") Sphere illuminated by hundreds of random color lighting sources. The ...
11
votes
0answers
307 views

DSolve breaks when the ordering of independent variables aren't proper?

Bug introduced in 3.0 or earlier and persisting through 12.0. I encountered this when trying to solve this problem with DSolve: ...
11
votes
0answers
344 views

Setting non-standard ImageResolution for EMF export as default

Mathematica has a bug in that BarCharts and ListPlots with Filling will export as a ...
11
votes
0answers
896 views

What are the known differences between Save and DumpSave, and how to account for them?

Edit: I changed the title and (slightly) the wording of this question in order to make it more easily answerable. If I evaluate this in Mathematica 9: ...
11
votes
0answers
555 views

How to style and position VerticalCallouts and RadialCallouts

Here is a pie chart with a labels placed with a "VerticalCallout" ...
10
votes
0answers
124 views

How to interact with Amazon S3 using Mathematica?

Unfortunately Mathematica 12.1 does not have a native way of handling S3 files, the S3 functions were removed from the experimental AWSLink package. Someone know where can I download it, or some ...
10
votes
0answers
149 views

Internal error using part specification with Dataset

Bug introduced in 12.1.0 Update 2020-04-13 WRI has confirmed that this is a bug. CASE:4530401 Suggested workaround from WRI ...
10
votes
0answers
241 views

How to make this Möbius Torus animation?

I came across a beautiful animation of a Möbius torus, and I'm hoping someone can help me make this animation in code: What I've tried: I made the basic shape but can't get the right colors, ...
10
votes
0answers
86 views

How to use GrammarRules and GrammarApply with different languages?

I want to use PLI with GrammarToken/GrammarRules/GrammarApply in Russian language. But it doesn't work ...
10
votes
0answers
125 views

How to use Bags in FunctionCompile?

I was reading this question and it wanted to know how to FunctionCompile this: ...
10
votes
0answers
70 views

Different timing with large array assignment

Consider the following example n = 10^8; AbsoluteTiming[ A = ConstantArray[1., n]; // anyFunc; A[[2 ;; ;; 2]] = -1.; ] {0.388108, Null} ...
10
votes
0answers
230 views

Connecting notebook to remote kernel

I'm trying to connect my FrontEnd session to remote kernel. Manual connection works by creating LinkObject like so: ...
10
votes
0answers
179 views

Workaround for DSolve in V 12 when it gives undefined as solution to 1D heat PDE?

Reported to WRI CASE: 4278450 Comparing the following, all done from clean kernel The strange thing is that V 12 can solve this same PDE without the assumptions ...
10
votes
0answers
150 views

CUDADot[] takes ~3x time compared to Dot[]

It all started when specifying TargetDevice -> "GPU" in Classify[] yielded no speedup nor any activity in the GPU. Then I tried something simpler like ...
10
votes
0answers
105 views

What's the difference between these formats?

Unfortunately, the documentation does not give a substantive explanation of the differences between these formats: WDF vs WXF WLNET vs WMLF M vs WL - was answered here: What is the difference between ...
10
votes
0answers
878 views

From where to learn finite element method?

Can anyone reccomend me a book or site for learning finite element method with mathematica, besides wolfram language official site, https://reference.wolfram.com/language/FEMDocumentation/tutorial/...
10
votes
0answers
212 views

How to segment rectangular photographs on a table?

Given an image of a table with photographs (take from any angle), I'm trying to extract the photographs and correctly align them into perfect rectangles. There are four steps to the algorithm: Detect ...
10
votes
0answers
121 views

'Visibility' of Dynamics in TabView with respect to SynchronousUpdating

Bug introduced in 11 or earlier and persisting through 12.0.0 CASE:4076464 Example 1 ...
10
votes
0answers
175 views

PatternSequence, Optional and _Symbol

Bug introduced in 9.0 or earlier, partially fixed in 10.1 and persisting through 11.3 [CASE: 4075992] confirmed Note: See (72290) for the fixed part of the bug. Consider the following example: <...
10
votes
0answers
334 views

Create vtk file of ParaView from Mathematica [FEM post-processing]

I'm doing FEM in Mathematica and want to visualize the results in Paraview (e.g., create a video of the displacement field). Now I have the element mesh, the displacement and stress fields. How can I ...
10
votes
0answers
290 views

Possible Symbolic Integration Bug

Bug introduced between 5 and 8 and persisting through 12.0. I think I may have found a bug, and want to verify is this reproducible in other versions and platforms and not a mistake of mine. I ...
10
votes
0answers
113 views

Compile M11.1-compatible LibraryLink libraries using M11.2

WolframLibraryVersion, defined in WolframLibrary.h, was bumped from 3 to 4 in Mathematica 11.2. This causes libraries compiled ...
10
votes
0answers
189 views

What's the Wolfram Cloud missing?

So I was building myself a quick little home page in Mathematica today and I'm hosting it in the Wolfram Cloud because that's a nice easy thing to do. One thing I was wondering about what standard web ...
10
votes
0answers
119 views

URL functions overload

All these functions seem capable of doing the same things: Import, URLFetch, URLSave, ...

15 30 50 per page