4
votes
0answers
101 views

How to make an executable .jar connect to Mathematica

I am writing a Java Swing program which collects data and connects to Mathematica to do some computations. As other answers here suggested, I have included JLink.jar in the classpath, as well as the ...
0
votes
2answers
135 views

Given integral, how to plot

I want to use mathematica to visualise some plots, this would help me understand my calculus course. My problem is this: Given that x^2 + y^2 <= a^2 Find ...
6
votes
3answers
307 views

Derivative of contour in ContourPlot

Sorry to bring this question up again, since there are many similar questions on the site. I use to think this is a easy job to do, because for the worst case I can follow the answers on this site. ...
4
votes
0answers
156 views

How to speed up import of large csv table?

Loading less than 2 gB of csv data took 5.29 hours: ...
1
vote
1answer
83 views

Tiny question about Indexed[x,n]

Maybe I should apologize for this silly question, but the documentation for Indexed is very short and not explicit. I have an equation with variables ...
1
vote
1answer
61 views

How to TakeWhile not zero of functions?

fuu[x_]:= 2 - x^3 + x^7 This works: TakeWhile[{5, 4, 3, 2, 2, 1, 0, 0, 0, 0}, # != 0 &] (*{5, 4, 3, 2, 2, 1}*) This ...
2
votes
2answers
72 views

How to build recursive function which only remembers every pth value and the last two values?

I need to create a recursive function of the natural numbers $f$ which only remembers the last two values it has found and every $p$th value. Below is the form of the code that I am working with, but ...
0
votes
1answer
40 views

Problem Plotting List Data [closed]

I'm trying to plot the following data but it's not producing a graph. It's really a graph of y = x^2 but it's not drawing the parabola. ...
1
vote
1answer
72 views

How to specify the number of precision digits for columns using DatabaseLink functions and options

Some databases (e.g. MySQL) does not store decimal places for seconds unless the number of digits needed is directly specified (e.g. DATETIME(4) for 4 digits) when creating the table in the database. ...
0
votes
1answer
57 views

Designing a loop that fetches 5 random vectors each with 5 components from a set of 10 until Linear dependence is found

I am currently trying to find a way to make a loop that will select 5 random columns without replacement of a 5x10 matrix until it finds a determinant equal to 0 out of the new matrix formed by the 5 ...
0
votes
1answer
71 views

LevelScheme Ticks hidden behind DensityPlot or SmoothDensityHistogram

I'm having a problem where the LevelScheme ticks are hidden by my SmoothDensityHistogram. In the above figure, I am sure that the ticks are there since you can ...
2
votes
2answers
104 views

Vertical rulings for a cylinder

I have: ...
0
votes
0answers
38 views

How to solve a system of equations which includes vectors? [duplicate]

I'm starting to wonder if this is something that mathematica just can't do? I thought something like this might work: ...
14
votes
3answers
336 views

Mimic a procedural, recursive clustering algorithm for site percolation using functional programming

Sorry in advance for my logorrhea: I just want to make sure all of the information is here. Context and Question I am investigating site percolation on a square lattice. I have a working, depth-...
6
votes
2answers
330 views

Solving a two variable two equation trig expression

I am trying to use Solve to get what two angles (A and B) are in a problem I have. ...
7
votes
2answers
169 views

Threading elements over corresponding elements in the second list

I often need to merge two lists like the following: $A=\{\{0.1\},\{0.2\},\ldots,\{1\}\}$ $B=\{\{x_1\},\{x_{21},x_{22},x_{23}\},\{x_{31},x_{32},x_{33}\},\ldots,x_N\}$ in a way to ideally obtain a ...
1
vote
1answer
64 views

Reducing a system of vector equations

I'm trying to solve a system of vector equations. I know this is solvable since I've done it myself by hand (I reduced it to solving the root of a quartic anyway). I'm trying to do it in Mathematica ...
0
votes
3answers
251 views

Logarithmic x-axis for ListPlot?

I have a list of points that I am trying to plot. Is there a way to make a ListPlot where the y-axis increases normally by 1 every interval but the x-axis ...
0
votes
1answer
68 views

Mathematica Code Involving For Loops Not Completing All Iterations [closed]

First of all, thank you for taking the time to read this. I'm working on a portion of code related to the genetic algorithm that is not producing the expected results. What the code is supposed to do ...
12
votes
2answers
426 views

Why Mathematica cannot apply The Fundamental Theorem of Calculus automatically?

For some reason Mathematica cannot evaluate this definite integral: ...
4
votes
1answer
267 views

Applying function to cartesian product of two lists

I have two lists X = {1, 2, 3}; Y = {5, 6, 7, 8}; I want to apply function g[x,y_,z_] to all pairs from X*Y, so I need to ...
1
vote
1answer
67 views

Change input parameter order in a function

I'm a beginner in Mathematica programming and I'm trying to understand how input parameters work in Mathematica's function. I encountered a problem with the sequence/order of the input parameters of ...
0
votes
0answers
21 views

Is there a list of function shorthand notations, shortcuts, and other various symbols somewhere? [duplicate]

For example how you can use // to apply some functions like Simplify instead of enclosing the argument in square brackets. Or ...
1
vote
0answers
41 views

What does __Rule do in Mathematica? [closed]

What does __Rule do in mathematica? I understand the __ is used for any repeated expression, but why is the Rule appended at the end? For example: Import nested JSON file Thanks!
3
votes
2answers
339 views

Contour lines over SmoothDensityHistogram

I am using SmoothDensityHistogram on a data set of the form {{x1, y1}, {x2, y2}, …, {x_n, y_n}}, and I would like to also show ...
2
votes
1answer
114 views

Change cell frame color in stylesheet

I am trying to make a custom stylesheet, but I am not able to get rid of the cell frame color from the base stylesheet. In particular, I have: I have changed the background color of the cell to ...
1
vote
1answer
94 views

Writing Assistant is always on top

Title explains it. Even when I am asking this question on google chrome, Writing assistant is still on the screen.
3
votes
0answers
123 views

Stability analysis of transcendental equation (stability crossing curves)

I am working with a non-linear delay system with three scalar delays. After taking the Laplace transform of the linearized system, the characteristic function is a transcendental equation with three ...
7
votes
1answer
1k views

What do the X and Y axis stand for in the Fourier transform domain?

In Wolfram Mathematica the function Fourier has the following declaration Fourier[list] And after a list is given to the ...
5
votes
2answers
244 views

How to make Mathematica use system GTK style under Linux?

Under Linux, Mathematica uses preinstalled QT themes, but I'm sure that it's possible to make it use system GTK style. How?
0
votes
1answer
179 views

ParallelTable slower than Table in the presence of an Association?

So after testing some things I am completely reformulating my problem. First an example ...
2
votes
2answers
147 views

Calculate area between two multivalued curves

I have to calculate the area between two curves which will give me the result of a particular quantity. However, both the curves are multivalued functions. Here is a data set showing the region where ...
0
votes
2answers
536 views

Solving an equation takes too long

I am trying to solve the following equation func[a, b, c, d, e] == 0 where ...
0
votes
2answers
117 views

Match groups in regular expressions

I'm trying to understand Mathematica's pattern matching in strings, but I have some doubts. 99% of the time I need to a) check if a match occurs and b) retrieve the matched patterns. I come from ...
0
votes
1answer
181 views

Calculate the standard deviation between two sets of data points

I have two sets of data points, ...
5
votes
1answer
276 views

Fitting a Parametric Curve

I apologize if this question is obvious or simple. I'm in high school and have started playing around with Mathematica only recently. For my Calculus Final, I am supposed to use rotation about the $y$...
4
votes
2answers
178 views

Implementing AnglePath in Mathematica 10.0

Does anyone have an implementation for AnglePath (see AnglePath Documentation and example usage) in Mathematica 10.0?
2
votes
1answer
107 views

Is it possible to find the size of a variable in a notebook?

I have a fairly large a list of matrices matsLst, which takes about 15 minutes to compute (but computes successfully each time). I can test in the notebook that ...
0
votes
0answers
70 views

3-adic FFT algorithm

I am trying to implement the FFT algorithm when $n=3^k$, but maybe my code is wrong. Are there any suggestions for improving my code? ...
1
vote
2answers
246 views

Create a table of Mean Values and Standard Deviations from data list

I need to create a table of the Mean Values and Standard Deviations of 18 columns of data from a table. I know how to compute the Mean and Standard Deviation for the different columns, but am unsure ...
11
votes
2answers
159 views

Lookup with default broken in Dataset

Given an Association, ...
0
votes
0answers
54 views

Problem with plotting a piecewise function [duplicate]

I'm having a very puzzling issue with piecewise defined but smoothly continuous functions. I have a perfectly continuous piecewise function defined as ...
1
vote
1answer
69 views

ListlogLogPlot can't work on y axis

I have a table: ...
2
votes
1answer
100 views

Compiling a summation

I have a sum over Legendre polynomials which I'm trying to speed up. I've come across the suggestion of using Compile to speed up code in previous answers around ...
2
votes
1answer
123 views

Meaning of Pattern at derivatives of arbitrary functions

I want to derivate some general functions like D[F[x[r_, p_], y[r_, p_]], r] or this simpler one D[F[G[x_]], x] . When I ...
2
votes
1answer
97 views

How to find µ (Gravitational constant mass product) with PlanetData?

I would like to use PlanetData to get µ, the product of the Gravitational constant G and a ...
1
vote
1answer
156 views

Finding the discrete Fourier transform for a simple oscillator?

Here's what I want to do, initially at least: I have an oscillator, it's in some force field, I've integrated it using the Euler method, so I have a list of points of the form {t,x}, where t is the ...
0
votes
0answers
87 views

Using Manipulate to determine intersection of two surfaces

Here is what I have done thus far: ...
1
vote
0answers
60 views

How can “lift” a plot which passes near y=0? [closed]

I know this plot below does not touch b=0. How can I lift it in order to see those values near b[M]=0? I tried ...
0
votes
1answer
51 views

Grouping by multiple coefficients

Good day! I have an output equation that has a very large amount of coeff. b(x,y), like so: ...

15 30 50 per page