4
votes
1answer
107 views

How can I temporarily suspend the Combinatorica package?

Sometimes after I load the Combinatorica package by entering Needs["Combinatorica`"], I need to use Mathematica for something like: ...
1
vote
0answers
29 views

Loading a notebook to a website

When I upload a Mathematica notebook to my website, when I click on the link, it opens, but as text, not a Mathematica notebook. At some sites, when I click on a Mathematica notebook, the notebook ...
4
votes
1answer
101 views

How can I make angle brackets function like lists?

Is there a way to make <a,b,c> behave like {a,b,c}, but remain displayed as ...
1
vote
1answer
52 views

Replace symbol with numerical value

How do I get the same result, i.e., how can I get Mathematica to replace a with 1? ...
4
votes
1answer
71 views

User defined packages don't load with $\mathtt{Needs}$ or $\mathtt{Get}$

As an introduction to packages in Mathematica I'm following this short guide by Leonid Shifrin, and tried using the sample package provided in that answer. However, both ...
2
votes
1answer
92 views

How to solve coupled complex-valued equations faster and get simplified solution

I have six coupled equations. How to solve these equations symbolically faster in Mathematica. In these equations, variables p,q,x,y are ...
1
vote
0answers
29 views

How to plot market share data in standard form [duplicate]

I am trying to accomolish exactly this (not related to market but with exactly same representation): Is there any special function in mathematica to do these types of plots? Or how would you ...
7
votes
1answer
114 views

Exporting 2D & 3D graphics for use in Adobe Illustrator

I have recently (perhaps since Mathematica Version 10?) encountered a change in how PDF images are saved and how they behave after being loaded into Adobe Illustrator (v16.0.4 under Mac OS X 10.10.5). ...
0
votes
0answers
43 views

INTERNAL SELF-TEST ERROR: winFonts|c|265 [closed]

INTERNAL SELF-TEST ERROR: winFonts|c|265 I don't know what happen,even the mathematica cann't calculate. and it show symble in a unnormoal,and it makes me crazy. I need help!!! I need help!!
4
votes
2answers
65 views

Using parenthesized Regex backreferences in StringReplace

(I am sorry for my poor English,I'll try to use a simple sentence to convey me.) I can use StringCases to get the target to change like this ...
8
votes
2answers
165 views

Problem With Mesh on 2D Plot

How to make the mesh color on 2D plot automatically same with the plot color? The code below doesn't work and produces "Automatic is not a graphics directive" error message. ...
0
votes
0answers
44 views

How to customize an animation [duplicate]

I want to create an animation regarding the restricted three-body problem for the Earth-Moon system. The code is as follows ...
5
votes
0answers
41 views

How can I wrap a C++ object in WSTP?

I am trying to wrap a sophisticated C/C++ API in Mathematica using WSTP, but can't work out how to return a pointer to a C/C++ data structure. This object was created on the C/C++ side of the wrapper, ...
3
votes
1answer
81 views

Problem exporting and re-importing STL file

I wrote all code and there're no errors in code. Result of code is like first picture(left). But I can't Import that structure. The result of import stl file is second one(right one). How can I import ...
-1
votes
1answer
113 views

Problem with NDSolve and If

If T=T1, program can calculate. But, when T = T1*If[Abs[q2[t] - q2d] < e1 && Abs[q2'[t]] < e1, 0, 1], program can ...
1
vote
1answer
44 views

Labelling Vertices of a GraphicsComplex

I cannot figure out how to label the vertices of a GraphicsComplex, for example ...
2
votes
3answers
95 views

slwcon and eincr in integrating multivariate Gaussian random variables

Why is the following integration involving multivariate Gaussian distribution so slow and generating an error? Is there a better integration strategy? All that I'm doing is considering ...
1
vote
0answers
47 views

Create set of data from vector curve [closed]

I need exactly what is written in the title. Suppose we have some curve plotted: p = Plot[Sin[x],{x,0,2pi}] now we save that as vector graphics: ...
2
votes
1answer
106 views

When are sparse arrays effective?

Sparse arrays are not effective in Mathematica 10. More computational time is needed to perform arithmetic operations on sparse arrays. Their size is also bigger than normal arrays. Here is a simple ...
5
votes
1answer
118 views

Image analysis: Gravel Sieve

In this link: http://broadwaysand.com/?page_id=165, you can find different gravel pictures. A quarter dollar coin gives the scale, because its diameter is 0.955 inches (24.26 mm) I want to get the ...
1
vote
1answer
97 views

Three dimensional plot with CountryData

I wish to visualize a 3D layout of country data using the following code. How can the output be improved as currently it looks smeared to one side. ...
4
votes
4answers
241 views

How to stop a summation when a variable is small enough?

I meet with a problem. I hope to get an infinite summation of $f1(x)/f2(x)$ which converges to zero. So my code is Sum[f1[x]/f2[x],{x,Infinity}] or ...
5
votes
0answers
91 views

How to write crash-robust code?

When a notebook crashes all the work I was doing is lost - I'd like to ameliorate this situation! Is there a way to decorate a symbol so that it is saved to disk whenever it changes, or after a ...
1
vote
1answer
81 views
+50

How to keep Mouseover visible while control has focus/cursor?

I have a DateObject and InputField that I am using to collect an inputted date. Mouseover ...
0
votes
1answer
72 views
2
votes
1answer
83 views

Datatypes and numbers in Mathematica

I have some questions about numbers in Mathematica: Does Mathematica work with datatypes like int, long, ...
0
votes
1answer
61 views

Constructing a grid of individual plots for data imported from a list of files [on hold]

I have to plot 6 data plots (ListPlot) in a GraphicsGrid from 6 different files (each data file has four columns of which the ...
0
votes
1answer
67 views

How to assume that a list of variables is real in a nice and clean way

You can use the function Element to say e.g. $x,y,z\in\mathbb{R}$ via Element[x|y|z,Reals]. Now if I have a list of elements ...
3
votes
2answers
84 views

Creating a tube with custom caps

I need a tube with only one end capped. I can do this relatively easily with: ...
0
votes
0answers
79 views

how can I plot the Normalized histogram [on hold]

I have a table of r and w. I want to chose a random w in the interval [0-1.6] and with interpolation find r relative to this w. For 1000 {W[r],r} I should plot the Histogram with Normalized factor ...
-2
votes
0answers
25 views

“Extract” certain elements of a list of “rules”? [duplicate]

I have the following list: {u1[0] -> 3773.62, u2[0] -> 3773.62, u3[0] -> 48.7871} I need to extract the elements on the right hand side of each rule ...
0
votes
1answer
58 views

DSolve Error 3D Navier Stokes (z,r,t)

I am essentially wanting to solve Navier Stokes in the [z,r,t] dimensions (2D+Unsteady Flow) for pressure driven flow. However, I keep getting an error I am unable to resolve in my Dsolve such as: ...
4
votes
1answer
155 views

How can I draw this polyhedron?

I'm high school student, and I am doing research about buildings using Mathematica. I want to plot the polyhedron shown below: I have tried using Table, but it ...
0
votes
0answers
57 views

How to accelerate Simplify and Series? [closed]

A recent project of mine requires a lot of symbolic calculations in Mathematica and is very time consuming. By experiments I have found that the most time consuming parts are: ...
1
vote
0answers
53 views

Jagged appearance of lines in 3D plot

I wanted to know if there's a simple way to plot some field lines of a 3D vector field, something like an extension of StreamPlot. I've searched for a while, but ...
3
votes
1answer
62 views

Table generation with SetDelayed function [on hold]

I would like to understand why the following two outputs differ: Let us define the following data set: ...
4
votes
1answer
41 views

How to auto-run user-interface in Player Pro

I am about to start constructing a UI that will be run with Player Pro. I have created the following notebook and marked it cells as initialization cells. ...
1
vote
2answers
139 views

Trying to solve a system of equation

I am trying to solve 3 equations 3 unknown system on Mathematica in order to get numerical results for my three variables x,y,z but the software is always on the ...
1
vote
0answers
34 views

Using precision in Mathematica code [duplicate]

I would like to use a specific precision for several different calculations in Mathematica code. I know that using SetPrecision can give you the required precision ...
1
vote
0answers
31 views

Linear Programming Using Dual Simplex method

I want to solve an optimization problem using the Dual Simplex Method. Although Mathematica gives the result directly when I use the command Minimize but I want to ...
1
vote
0answers
35 views

Solving a Nonlinear Optimization using Primal-Dual Interior point method [on hold]

I want to solve an optimization problem using the Primal-Dual Interior Point Method. Although Mathematica gives the result directly when I use the command ...
0
votes
0answers
19 views

Creating points that are remoted from one another beyond a certain threshold. Quasirandom sequance? [duplicate]

I am looking for an approach to create a set of pseudorandom pairs of numbers subjected to one condition. They must be not closer to one another than a certain limiting parameter. One approach might ...
9
votes
2answers
91 views

Why does this LibraryLink example of LinkObject based passing not work? Bug or user error?

There's an example of LinkObject-based passing in the LibraryLink documentation. Unfortunately the cell in the documentation notebook is corrupted, but to skip ...
0
votes
1answer
79 views

Singular integral mathematica

A = Integrate[Sin[2 x] / (A1 - B1 Sin[2 x] + C1 Cos[x] - D1 Sin[x]), {x, 0, 2 Pi}] The calculation is taking too much time; not returning any results. Any help?
3
votes
1answer
103 views

How can I fix a defect in the 3D graphics rendering of a coiled tube? [closed]

I use the following code to obtain a tube version of a spring: ...
0
votes
0answers
46 views

The sum Rule, getting mathematica to help me understand how it is derived [closed]

Using Mathematica to solve equations: So I have been struggling for a while with regards to how an equation is derived. I have posted the question several places, but I want to figure it out myself ...
3
votes
1answer
231 views

Simulating an optimization problem

I have an optimization problem like below: $\text{minimize } - \sum_k w_k \log r_k$ $ a \leq r_k \leq b_k, k = 1, \cdots, 10$ Here, $w $ and $b$ is a set of constant: $w = [w_1, \cdots, w_{10}]$ ...
1
vote
1answer
45 views

Display a triangle that rotates at certain rate when space bar is held down?

This question is a follow up on: Open a pop up window that runs a calculation in loop until it is closed? How can I open a pop up to show a picture of a triangle that rotates by ...
1
vote
1answer
27 views

Histogram and Random Lists [closed]

Suppose I have the following list listrand of random numbers from RandomReal[-30,30] (where the size of the list is 40). Is ...
3
votes
1answer
32 views

Open a pop up window that runs a calculation in loop until it is closed?

How should I construct a code which opens a pop up window, displays a constantly updating image in it and is terminated once the pop up is closed? The constant updating would be an infinite loop of ...

15 30 50 per page