4
votes
2answers
181 views

Finding the Position of the Minimum Neighbor for Each Element in a Large Matrix

I have a large matrix ($6020\times 8452$), and I want to create a new matrix where the relative position of the minimum neighbor is each element in the matrix. For example, if I had the matrix ...
7
votes
1answer
227 views

mathematica 10 not showing numerical solution of differential equations?

I just got the new mathematica version 10 and tried to solve the following system of differential equation. $$r^2\frac{d^2f}{dr^2} = 2f(1-f)(1-2f)+\frac{r^2}{4}h^2(f-1)$$ ...
1
vote
1answer
95 views

Option: number of digits

The command NestList[Cos, 1.5, 10] produces the list: ...
3
votes
1answer
69 views

How can I make 1+$MachineEpsilon not look like 1?

I undarstand that 1+$MachineEpsilon is actually not equal 1. However, it persists to look like it was equal ...
0
votes
2answers
103 views

Operations on transfer function model

Suppose I have a transfer function defined via TransferFunctionModel, e.g. tf == TransferFunctionModel[{{1/s}}, s]. How can I ...
4
votes
0answers
185 views

Building Butterworth Bandpass Filters

In order to bandpass filter data it is necessary to use ButterworthFilterModel, followed by ToDiscreteTimeModel and RecurrenceFilter. I have two questions: I wish to specify the order of the ...
0
votes
1answer
43 views

How make first automatic numbering cell for a style number 1 not 0?

I have a cell style "Figure" for a notebook, defined as: Cell[StyleData["Figure", StyleDefinitions -> StyleData["Text"]], MenuSortingValue->10000] In ...
2
votes
2answers
127 views

Showing steps for TrigExpand

If I enter a double equal sign and the following in Mathematica 10: == integrate 1/(1+x^4) Then wolfram alpha allows me to select a Step-by-step solution, which ...
1
vote
0answers
49 views

Complex input for Compile makes it slow

I asked a question here and then tried to use Compile for the solution to gain even more speed. Inside Compile there is a loop ...
2
votes
1answer
109 views

How get repeated elements from two lists

How to write a code that takes an certain element related to a given subset in a LIST 2, that occurs also in a LIST 1? for example, there are two lists: ...
3
votes
2answers
138 views

How to deal with the condition that a function own many options?

Assming that I have a function myFunc which has some options. ...
5
votes
1answer
243 views

VectorPlot3D - vectors starting at points

Normally the vectors in VectorPlot3D ar attached the middle. How to get them attached at the beginning (what is typical conventions in most textbooks) by use of VectorPlot3D ?
1
vote
0answers
78 views

using Mathematica library in Java

I am trying to build a Math expression calculator in Java. Is any way for using Mathematica libraries in Java program without ...
9
votes
0answers
115 views

Why is this evaluation halved when adding units?

Why does this strange behavior occur when dealing with units and quantities? ...
3
votes
2answers
131 views

Why is GCD[a] evaluated to GCD[a]?

GCD has attribute OneIdentity so I expected GCD[a] being evaluated to a?
3
votes
1answer
111 views

Making table of matrix product and efficiency

I want to make a table in which each element is a matrix product: ...
14
votes
3answers
608 views

How can FactorInteger be so slow if PrimeQ is fast?

My 8th grade son had a homework problem to find a prime factor of $99!-1$. I thought to be clever/lazy and used FactorInteger[99!-1], but it takes forever. ...
3
votes
2answers
321 views

How to NOT simplify fraction

How can I prevent Mathematica from simplifying fractions? What I would like to do is run a test on a list of fractions to see how many are in their reduced form. For example, I have a list: ...
3
votes
1answer
120 views

Transform a table (list of associations) to a flat association

I would like to transform a table like ...
8
votes
3answers
170 views

Multiple bwspec for BoxWhiskerChart

If I want to make a horizontal boxplot (with outliers) for y: ...
1
vote
0answers
59 views

How to put Black as the background colour, and text as white in Mathematica? [duplicate]

My question is equal to this one,even though by different reasons. I would like to know how can I change the white background to black, and the black text to white. I'm asking again, since a year has ...
4
votes
2answers
182 views

When analytical and numerical methods do not agree - Case study with Maximum Likelihoods methods

Here is the probability distribution I am interested in: $$P(q)=C e^{4 n s q} q^{4 n \nu - 1} (1 - q)^{4 n \mu - 1}$$ , where $e$ is the constant of Euler and $C$ is constant so that the whole thing ...
-1
votes
1answer
99 views

Find $r$,in terms of variables $U$ and $V$

I want to solve this equation, for $r$: ...
-1
votes
2answers
157 views

How to compute LLL-reduce basis from lattice in Mathematica? And factor N

original article Clear. What is k? What is suitably large? I already have large numbers. I tried this WITHOUT k: ...
0
votes
1answer
115 views

Vectorize pixel SphericalPlot

I have a question about Mathematica images exporting. I have created 3d (SpericalPlot) with coloring function on it and then exported it to pdf. Is there any possibility to make more vector graphics ...
6
votes
1answer
109 views

Loading Packages with Parameters

I have some packages that uses database connections inside it, let's call it ConnPackage. The connection IP is a public package variable, and has a default value: ...
0
votes
1answer
56 views

I'm trying to iterate a function with two variables [closed]

I have a function that calculates temperature that is dependent on both temperature and time. I want to be able to iterate the function to calculate a new temperature and then use that as the next ...
12
votes
1answer
249 views

Orderless pattern matching

The MMA docs state that "In matching patterns with Orderless functions, all possible orders of arguments are tried". Why then does the following not work? ...
3
votes
2answers
182 views
2
votes
2answers
247 views

How to show surfaces as a implicit plot in 3d?

I was trying to show a feasible region with these lines: ...
4
votes
1answer
230 views

Polar Decomposition

I'm new to Mathematica 10 (half-a-month user). I'm looking for a function of polar decomposition but for now I cannot find it. Can anyone tell me about related functions. Thanks in advance.
0
votes
2answers
116 views

Decimal-to-ASCII conversion

I have to write a program that converts a number (decimal notation) to an ASCII string. For example, x = 26728 (or 0x6868) and the string is "hh". I wrote this, but it seems that it is not the ...
0
votes
1answer
34 views

Full superset not displayed on Manipulate slider

I wish to incorporate ODE solution with Bondary condition sets: ...
0
votes
1answer
100 views

How to solve Mod equation with mathematica [closed]

i'm pretty noob with mathematica but i need to solve an equation: $$c\equiv m^2\pmod n$$ I tried something like ...
1
vote
1answer
83 views

How to convert cumulative to incremental for plot

Trying to show a plot of a power function $Y = a X^b$, where $Y$ is cumulative cost and $X$ is cumulative shipments where we'd like to see the incremental cost. For $X_1$ the cost is $Y_1$, for $X2$ ...
1
vote
1answer
82 views

Computing a Sequence using Recurrence

I posted a similar question earlier today, but unfortunately I realized after several hours that I over-simplified the problem for this forum. There is a very good answer to the Computing a sequence ...
5
votes
0answers
44 views

Change system options in package

I use Mathematica mostly for numerical calculations, and sometimes the performance of numerical calculations can be greatly improved if the high-precision arithmetic can be switched off by ...
9
votes
5answers
307 views

Function for a series of joined slopes

I need a function for a series of joined slopes and my solution feels a bit kludgy. Is there a better way? A list of pairs of transition points and slopes: ...
6
votes
1answer
194 views

Creating formulas for the Moodle CMS question bank

Edit I have made some progress on this problem, which is given below the question. I use the Moodle course management system for much of my teaching, and the CMS comes with a tool for creating ...
2
votes
0answers
47 views

Syntax error in debug mode

Bug persists through 10.1 It appears that in debug mode, the \[Piecewise] symbol gives syntax error. Is it a bug? Are there ways to fix that except write it in ...
0
votes
2answers
85 views

Parametric Function

i'm struggling to implement the following parametric function: I need to create a g function with two arguments (w and v). If w and v are not empty lists, then it will return a list containing two ...
2
votes
1answer
83 views

Local evaluation works, CloudDeploy did not work

I a playing around with my programming cloud account. What I have found, interactive functions often are not working because there are several details that are not implemented into the cloud. So I ...
0
votes
0answers
46 views

Why does Save change my data precision?

I have some data from some Mathematica program, and it appears that the precision of the data has been slightly changes when I save the data and reload it again. ...
0
votes
1answer
106 views

How to determine if directories with executable permission and not

I have some directories that have the UNIX executable permission some does not. What tests could I write in Mathematica to test it?
2
votes
3answers
120 views

Computing a sequence by recurrence

I am trying to create a list where each element of the list is calculated using the sum of all previous elements of the list and also uses the $N$th element of another list. The initial value of the ...
1
vote
1answer
63 views

Computation time depends on the matrix elements!

Consider these two lists of matrices, matrix and matrix2: ...
4
votes
0answers
35 views

Can I force Mathematica to use machine precision? [duplicate]

Some built-in functions (like Exp) give an arbitrary precision result, even when the argument is a machine precision number. Example: ...
1
vote
1answer
55 views

Compute the evolution of percentages from a data file

My data is stored in external .out files which contain six columns and a large number of rows. I know that I have to provide a small sample but the structure of my data is so unique, so I provide the ...
0
votes
0answers
22 views

how can sent data to Mathematica and get result in java? [duplicate]

I try to develop an math script calculator in java. My script has advance math functions and I can't calculate them in java.(for example limit, plot, ... ) Is any way for sending script to ...

15 30 50 per page