All Questions

8,040 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
44
votes
0answers
772 views

Hyperlinks not preserved when saving in PDF format in MMA V10

Bug introduced in 10.0 or earlier and fixed in 11.0.0 I usually create my course contracts in Mathematica and then save them in PDF format. The notebooks include hyperlinks and these have ...
39
votes
0answers
2k views

Fast Spherical Harmonics radiative transfer

This is a rather specific question and I apologize for spamming you with some lengthy code. But it could be interesting for some reader and maybe you can help out, so please bear with me. I am using ...
34
votes
0answers
572 views

Front end goes wild with named slots

Bug introduced in 10 and persisting through 12.0.0 Assume the following simple expression {#"Test"}& Now go in front of the ...
33
votes
0answers
837 views

Performance problems in new Sequence functions

The new-in-10.1 Sequence* family of functions should provide newly optimized methods for handling sequence problems. Happily in some cases they do! For example ...
33
votes
0answers
893 views

Changing FrontEnd automatic scrolling in version 8

In Mathematica versions < 8, the FrontEnd has a very intelligent behavior: On evaluation, it by default automatically scrolls down the Notebook window to the last printed Output cell but also ...
31
votes
0answers
614 views

How to design CloudObjects with reasonable CloudCredit costs

Note: I originally thought to post this as a non-answer/extended comment to this question; however I feared that I would end up hijacking the original question. It is likely a duplicate with the ...
30
votes
0answers
793 views

How to find a street pattern that fits a specific edge on a map

Cross post here I have such funny pictures: Very interesting,and you can get all of it by this code: ...
30
votes
0answers
572 views

Is MathieuC for moderately large imaginary arguments broken?

Bug introduced in 3.0 and persisting through 12.0 (reported as CASE:3208982) I'm trying to plot MathieuC[-3,0.3,I x] for $x\in[0,10]$, and here's what I get even ...
30
votes
1answer
594 views

Benchmarking: unexplained switching between high and low performance

tl;dr I am trying to accurately benchmark some vectorized operations, and compare them between systems. But benchmarking is hard to do well, and I am getting inconsistent results: performance is ...
28
votes
0answers
368 views

Bug in RegionMember?

Bug introduced in 10.0 and persisting through 12.0 RegionMember is new in 10.0 A commenter notes that the issue is with ...
26
votes
0answers
1k views

Kinect on Mathematica

I saw on the internet a lot of nice experiments with Microsoft Kinect. I just bought one and would like to know if someone here has been able to use it with Mathematica. The main idea is to been able ...
25
votes
0answers
1k views

Handwriting recognition with Mathematica

I am trying to teach Mathematica to read my handwriting. Since I don't want to ruin my reputation by showing my own handwriting, I am going to use a font called blackjack. Lets say this is a ...
24
votes
0answers
466 views

LibraryLink: What can we do with MInputStream and MOutputStream?

Version 9 introduced the WolframStreamsLibrary.h header for LibraryLink. It contains MInputStream and ...
24
votes
0answers
1k views

Nonlinear least squares on a GPU with Mathematica 9

Update: A Mathematica wrapper for (https://github.com/zitmen/cuLM) should allow for us to directly implement the Levenberg-Marquardt algorithm in CUDA for nonlinear least squares fitting. In a ...
24
votes
0answers
1k views

How would I improve this Karaoke machine code?

I was looking at a large collection of Import/Export user suggestions the other day and it dawned on me that we finally have MIDI import in Mathematica 9, which is rather interesting since MIDI ...
24
votes
0answers
805 views

How can I trace a functional expression's evaluation visually?

Ok, so the goal is to visualize the execution of this expression foo /@ {3 + 1, bar /@ {1 + 2, {4 + 7}}} in the following fashion using nested rectangles with ...
23
votes
0answers
401 views

Compile not correctly initializing a variable defined inside Module

Bug introduced in 8.0, fixed in 10.4, intentionally reintroduced in 11.0 and persisting through 12.0. In the following example, inside the minimumX's ...
21
votes
0answers
268 views

What has changed in pattern matching functions with the Orderless attribute?

Bug introduced in 10.1 and fixed in 11.0(.1) In making an attempt to answer this question, we ran into a version-dependent pattern-matching issue. An extended discussion in the comments transpired, ...
20
votes
0answers
207 views

How to get an absolute value of Around?

Around is a useful feature of Mathematica 12 to work with uncertain data. x = Around[-1, {0.5, 1.5}] $-1.0^{+1.5}_{-0.5}$ ...
20
votes
0answers
293 views

Implementing Contextual Bandits

The multi-armed bandit problem (MAB) is a classic in Reinforcement learning. Now that Mathematica version 12 finally has support for Reinforcement learning: Here's a nice "mnist example" for training ...
20
votes
0answers
197 views

Inconsistent handling of Dynamic option values; intended, omission, or bug?

In answering Dynamic ClipPlanes calculated from current ViewPoint Kuba and I got into a brief exchange regarding how Option values wrapped in Dynamic should be ...
20
votes
0answers
741 views

ListContourPlot and ListContourPlot3D use better interpolation for arrays of values than for lists of tuples (i.e. {{x,y,z,f[x,y,z]}..}

From reading the documentation, it seems that ListContourPlot3D should work equally well on an array versus a list of tuples, ?ListContourPlot3D ...
20
votes
0answers
835 views

LinearSolve and Krylov Method options

I need to solve a large, sparse, linear system. At some point Method -> "Multifrontal" fails and a bit later also "Pardiso" ...
19
votes
0answers
252 views

Breaking change of Total in Mathematica 12.0?

Total has been changed in Mathematica 12.0. The documentation seems to contradict itself. In one line it states: Total[ $f[ e_1,e_2,...]$ ] gives the sum of the $e_i$ for any head $f$ In the next ...
19
votes
0answers
612 views

How to ImageRestyle high-res images?

I’m running v12 now and ImageRestyle[] crashes for me on an image of size 1600 x 1200 pixels. All the examples in the documentation use images around 500 x 500 or ...
19
votes
0answers
303 views

Changes to Coefficient function in v10.2

In the version Mathemaica 10.4, I am very surprised that the core function Coefficient has changed, e.g., ...
19
votes
0answers
187 views

Status of all Evaluators?

Since I have 4 cores on my machine I typically have 4 notebooks open each with their own kernel evaluator. I'd like to construct a dynamic pane similar to the parallel kernels status window: But that ...
19
votes
0answers
412 views

Bug with Tooltip and ListPointPlot3D

Bug introduced in 10.0.0 and persisting through 11.2.0 The coordinates of a point in a three dimensional graph can be shown in a tooltip: ...
19
votes
0answers
1k views

How to protect existing MathLink connection from disconnecting

I am developing an application that consists of a Mathematica package and an external Java program. The purpose of the application is to read streamed data from a port and update a variable in the ...
18
votes
0answers
363 views

Mathematica vs. state-of-the-art SAT solvers

I found some fascinating paper by Marijn Heule and Oliver Kullmann on advances in SAT solvers and automated reasoning. In particular, the authors where able to show (a year earlier) a breakthrough ...
18
votes
0answers
167 views

Inefficient memory storage for Dataset

Why Dataset doesn't serialize its contents, isn't it the whole point? I expect it to behave similar to python's pandas.DataFrame,...
18
votes
0answers
303 views

Internal`Bag memory usage

1. How does Internal`Bag handle memory inside a compiled function? (examples below) 2. Is there a way to explicitly free up memory used by ...
18
votes
1answer
409 views

How to connect to an already running interactive Python session?

As Mathematica has the interoperability with Python since M11.2, with major improvements in M12.0, is it possible to connect to already running interactive Python sessions? For example, can we connect ...
17
votes
0answers
234 views

GridGraph[{6,6,6}] crashes—can you reproduce this?

Bug introduced in 11.3 and fixed in 12.0 Occasionally, I see a kernel crash with GridGraph[{6,6,6}]. It is not easy to trigger. Sometimes it may require as many ...
17
votes
0answers
204 views

Why the Callout option makes plotting performance poor

Bug introduced in 11.0 and fixed in 11.1 The Callout option is a new option for plotting, but the performance is very poor, see bellow testing case. ...
17
votes
0answers
301 views

Break[] inside ColorFunction

Bug introduced in 8.0 or earlier and persisting through 11.0.1 or later ...
16
votes
0answers
197 views

How to design re-usable sub-modules?

There was a recent question asking about how to design modular packages: Declaring Package with dependencies in multiples files? This is an important issue for which unfortunately there is no One ...
16
votes
2answers
321 views

Dataset shows an “All” Key when it contains a List of Associations

From a process I have a Dataset similar to this minimal example. ...
16
votes
0answers
161 views

Issue with undo after copying a string inside a string

Bug introduced in 10.0 and persisting through V11.3 Here's a small but annoying issue related to undo and copying of strings. Steps required to get the problem: Type ...
16
votes
0answers
338 views

Strange behaviour of integrals with Cos, Sin, and Exp

Bug introduced in 8.0.4 or earlier and persisting through 11.0.1 During the study of the problem How to solve this integration? I have discovered a strange behaviour of some integrals. I would ...
16
votes
0answers
225 views

Current (e.g., ca. 2016 / MMa 10 / WP 4+) best practices for embedding interactive content in WordPress?

My strategy, in the past, has been to embed interactive CDF files into my WordPress blog for student's to use (Much like the Wolfram Demonstration Project). As many know 1) the 'Plug in' ...
16
votes
0answers
217 views

Why does the FrontEnd lose matching of parentheses when we insert quotations?

Bug introduced in V10.0 and resolved in V11.3 (These are guesses. It is likely to have been resolved in an earlier version V11.X, but V11.3 is what I have access to.) I am running Mathematica 10.0....
16
votes
0answers
328 views

Calling Sage functions from Mathematica

I recently found a very useful open-source math software called Sage, which provides many useful functions lacking in Mathematica. Since I'm more used to the Mathematica language instead of the ...
16
votes
0answers
559 views

C Code generated from Mathematica not working?

I am a .Net developer. I'm trying to build a Visual C++ application using C code generated from Mathematica (by another person). I don't have Mathematica installed on my machine. When I try to compile ...
16
votes
0answers
1k views

Using TetGen in Mathematica to get 3D Voronoi diagram

In this post, the use of TetGen for 3D Voronoi tesselation has been briefly discussed. However there is still no info about the use of TetGen to generate a 3D Voronoi diagram. The TetGen documentation ...
15
votes
0answers
442 views

Wrong eigenvalues from a sparse matrix

Bug introduced after 5.0, in or before 8.0 and persisting through 12.0. I notice in the following example that wrong smallest 2 eigenvalues are resulted if calculating from a sparse matrix. But it ...
15
votes
0answers
316 views

New issue or new setting(s) of Goodness-of-Fit Tests in 11.3@student edition

Bug introduced in 11.3 or earlier and persisting through 11.3.0 or later Just before upgrading to 11.3.0 on last Friday, i was having p-value results from 11.2.0. Not worrying about upgrade may ...
15
votes
0answers
181 views

Why are delayed definitions in scoping functions NOT documented?

As outlined here, := may be used in scoping constructs like With to give delayed definitions, but this is undocumented. This ...
15
votes
0answers
645 views

Find the Panda and the Cat - Dudolf puzzle

I recently find this puzzle where you have to find the panda from a group of snowmen. Having a horrible eyesight I have to take help of mathematica to find it. I start with assumption that all ...
15
votes
0answers
567 views

Efficient solution of huge sparse linear system

I'm trying to improve efficiency of my code in which main task is a solution to huge (~$10^4\times 10^4$) but sparse linear system $$Ax=b$$ (In fact my aim is to solve nonlinear equations $F(x)=0$, ...

15 30 50 per page