0
votes
0answers
36 views

Entering a system of differential equations [closed]

while trying to solve a the following system of differntial equations i ran in to some trouble. I browsed the web and this site to find out how to enter this but I could not manage to get it to work. ...
4
votes
1answer
110 views

Missing V9 Menu: File -> New -> FreeCDF

I can run CDFs fine, and can export Notebooks as CDFs. But the File -> New menu does not contain a FreeCDF option, just the ...
1
vote
1answer
66 views

Need help defining my own rounding function

First of all: I'm a beginner with Mathematica. I'd like to define a function called Rounding which does the following: if for $x = n+a, n \in \mathbb{N}, a\in ...
8
votes
3answers
351 views

What is the most efficient way to map a linked list?

In order to work with lists effectively using common recursive patterns from functional programming, it's often most convenient to worked with the "linked list" representation, that looks like this: ...
0
votes
0answers
22 views

FindRoot with units error: Message text not found

This is sort of embarrassing. I'm working on a document to extol the virtues of Mathematica, and I can't get it to solve a relatively simple system of equations involving units. In this code, when I ...
7
votes
3answers
304 views

1D quasicrystal: points on a line nearest to points on a lattice

I have a simple lattice / line manipulation: ...
1
vote
1answer
31 views

How to create a user interface, that when a user clicks a button the entire display changes? [closed]

For example, the 'main menu' user interface has three buttons each labeled with a different level. Whenever button is clicked how do you display that level of the game without creating a new notebook? ...
3
votes
1answer
45 views

Creating a parallelizable DiscretePlot

To my knowledge, DiscretePlot cannot be parallelized, although one can simulate the default behavior of DiscretePlot and get the ...
0
votes
1answer
81 views

Solving a system of two equations of third degree

I am trying to solve the following system of two equations for x and y. The solutions for x and y have to be positive and the parameters s and c are positive (to have a coherent interpretation of my ...
0
votes
0answers
88 views
3
votes
1answer
53 views

Problems using hand-made transformation functions

I experience difficulties when using custom transformation rules. Below I give two concrete problems. I am interested in fixing each of them and in understanding what is wrong with my attitude to the ...
0
votes
0answers
31 views

How to set initial guess in NMinimize? [closed]

I have to search the global minimum with the NMinimize function. Can I set the initial guess by hand rather than randomly?
0
votes
0answers
28 views

Generate polyhedron from coordinates [duplicate]

This seems to me as an exceedingly simple question which I to my frustration can't seem to get a hold on: Given a set of coordinates, how do I make mathematica create a polyhedron from them? In my ...
2
votes
2answers
150 views

Plotting a section of an hemisphere

I'm writing a little package in Mathematica for geology where a particular stone may be approximated as an hemisphere. Anyway this is a rough estimation because a real hemisphere has its height as ...
0
votes
0answers
37 views

Get correlation matrix when using FindGraphCommunities

Does somebody know how to get the correlation matrix when using FindGraphCommunities (Social Network analysis) using the "Spectra" option? Can somebody tell me as ...
0
votes
2answers
50 views

Alternative to xor(A,B,C) [closed]

How can we make a comprehensive statement, which will correspond to the truth table of xor (A, B, C) (means that only true if exactly one of A,B,C is true) by combining logical operators AND (&), ...
1
vote
2answers
86 views

Using Mathematica to derive the PDF of the normal distribution

I am trying to use Mathematica, in this case in a well known and rather simple list of equations, but I get stuck whit Mathematica. Since I am just starting to use Mathematica for mathematical ...
0
votes
1answer
63 views

How to plot particular piecewise defined functions in mathematica

How to plot such functions in Mathematica? Let $a_0, p,g,c$ be any positive integers, defining: $$a_{n+1} = \begin{cases}\frac{a_n}{p} &, a_n \text{ divisible by p}\\ ga_n +c &, a_n \text{ ...
1
vote
1answer
69 views

Solution of Coupled Second Order ODEs with Boundary Conditions

D[Tu1[x], {x, 2}] qu - Tu1[x] (fu0 + I w p) == Tou[x] f1 D[T1[x], {x, 2}] q - T1[x] (f0 - b g0 + I w p)== To[x] (f1 - b g1) - g1 For T1 , ...
3
votes
1answer
85 views

What does LinearModelFit depend on except for its' arguments?

I thought this would be always true, but most likely it returns false. ...
-1
votes
0answers
46 views

compute uniform,chord length and least squares error of each approximation

I got a problem about compare uniform versus chord length parametrization. First,create an interesting noisy data set with >=100 points.(This is easy to deal with it), The data set must be such that ...
0
votes
1answer
32 views

NIntegrate and NumericQ [closed]

I need to do numerical integration --> differentiation --> numerical integration. I tried to apply the technique described in the accepted answer to a similar question: ...
1
vote
0answers
63 views

List comprehensions pythonic way [closed]

I am trying to avoid of using the indexes for list manipulations as these usually gives me headaches. In Python there are wonderful way: ...
2
votes
0answers
48 views

How to reduce notebook or CDF file size with many images in it? [duplicate]

We love to use Mathematica notebooks to keep our notes, so we import lot of scanned photos into notebooks. However, the nb file size goes crazy large after importing photos in it. For example, ...
2
votes
1answer
81 views

Symbolically Expanding One-Variable q-hypergeometric Series

In general, how do I get Mathematica to symbolically expand various infinite series to an arbitrary degree of accuracy? I deal with q-hypergeometric series quite frequently, and specifically want to ...
3
votes
1answer
168 views

Need help with C Code Generator

I'm trying to use the Mathematica C Code Generator package to generate code that is to be included in a web application by a developer. I don't know any C, and this seems to be the only way to ...
0
votes
1answer
57 views

Problem with Plot and ParametricNDSolve

This is my first question on this site, I hope it is written in an understandable way. Let's start. My aim is to plot a certain parametric region, with $x$ and $y$ coordinates given by the following ...
2
votes
1answer
137 views

How to not include data value outside plot range in the plot

Consider this list plot ls = Table[Sin[t], {t, 0, 100, 0.1}]; p = ListPlot[ls, PlotRange -> {{0., 0.1}, All}, DataRange -> {0, 1}, Joined -> True] If ...
1
vote
1answer
64 views

How to use Maximize correctly

I would like to Maximize this fairly simple expression ...
0
votes
1answer
91 views

Simplify matrix into an upper triangular matrix

I have a tridiagonal matrix that I am trying to simplify into an upper triangular matrix using Mathematica, so I can use back substitution and solve my linear system. I have found the command ...
0
votes
0answers
80 views

Nested for loop in mathematica

I have a code in mathematica with a loop which iterates over a variable i and calculates a list of numbers h given the start parameter f: ...
1
vote
0answers
43 views

Set-generating macro unexpectedly reaches recursion limit

One moment I decided to assign symbolic names to all special spaces since they all look the same when put literally in FrontEnd editor, more or less like "" or ...
3
votes
1answer
137 views

Writing loops for triangle elements

I'm kind of new to using Mathematica, so any help is great. I'm trying to write a program that will create a list or matrix that will give each small triangle's point numbers. For example if given ...
0
votes
0answers
20 views

How to get a number from a dynamic variable in “manipulate” [duplicate]

I did not find any satisfying answer to my question on this website (or I did not fully understood them as I am a quite new Mathematica user...) : So my question was: How can I get a real number (and ...
2
votes
0answers
47 views

Compiling/calling Mathematica-generated .so from C

I'm trying to call a compiled function from a C program. I am generating the static object ...
-4
votes
0answers
76 views

plotting 3D function [closed]

I would like to plot the function $Wig[x, p, \alpha, \lambda, \omega, \hbar]$ as a function of $\alpha$ and $\lambda$ but couldn't see the output. Any comments would be greatly app ...
7
votes
3answers
266 views

Smoothing ListContourPlot contours

I have some data of type {{x1, y1, f1}, {x2, y2, f2}, ...} and want to do ListContourPlot. However, there is a problem that the ...
0
votes
1answer
64 views

Coefficient of function different than polynomial

My question arise from the problem that Mathematica can't solve the equation $$ \text{Solve}\left[e^{a-x} (0.0299584 a+0.1 b-0.0299584 x-0.152913)-0.9 a+0.9 b+0.9 x+0.18=0.0498614 e^{-x} \left(e^a ...
0
votes
1answer
58 views

Social Network Analysis - Get the List of InBoundEdges for Directed Graph

I wish to get the list of inwards edges for a node. IncidenceList provides both inwards and outwards list. I can of course filter with ...
-1
votes
0answers
17 views

Application of Fermat's little theorem [migrated]

show that a^13≡a(mod 35) using Fermat's little theorem. Use Fermat's little theorem with primes 5 and 7.
4
votes
2answers
359 views

How can I name patterns in a Switch expression?

Suppose I have an expression and want to match it against successive patterns and return an expression corresponding to the first pattern that matched. In that case, I can use ...
11
votes
4answers
820 views

Plotting Fourier spectrum versus frequency of a signal

I have looked around here, and i am sure this has been answered, but i don't understand it. The thing is, I have taken a introductory signal processing course, and we had to use Mathematica, and i had ...
2
votes
1answer
90 views

PlotLegends and ImageSize

I have Mathematica 9.0.1, and I have problems with PlotLegends breaking the ImageSize directive. I defined ...
2
votes
1answer
74 views

Problem with Eigenvectors when given a matrix containing approximate numbers and symbols

I'm trying to diagonalize a certain 2 x 2 matrix, but Mathematica refuses to find the eigenvectors. In particular, when I input ...
1
vote
3answers
94 views

Label Markers On ListPlot

I would like to make a scatter plot where each element corresponds to a certain energy. Each plot marker should have its corresponding element next to it. IE. The data point at -1.16187 should have ...
3
votes
1answer
140 views

Can I enter the traditional form for Binomial as input in an expression?

Is there a way to enter the traditional form of a binomial coefficient, i.e. ${n \choose k}$ instead of Binomial[n,k], like I would enter a radical sign $\sqrt{x}$ ...
1
vote
2answers
76 views

How to fit exponential function which is not converging

I performed an experiment where I measured diffusion in a lipid bilayer. I performed the measurement by fluorescently labeling some molecules in the bilayer, and the irradiating them with light ...
1
vote
1answer
46 views

How can I get the functionality of a command ReplaceAllList?

I'm trying to use ReplaceList to match subexpressions. I expected the command: ReplaceList[{p, {p, p}}, {x_, y_} -> x y] to output two results, equivalent to: ...
0
votes
0answers
28 views

Is it possible to obtain vector differentiation results in terms of vectors rather than components? [duplicate]

When doing certain operations on vectors in Mathematica it is quite desirable to convert the results back into coordinate-free notation. Unfortunately, after going through the Documentation Center and ...
1
vote
1answer
143 views

How do I get all possible solutions in an underdetermined system? [duplicate]

I have two problems which I'd like to solve with Mathematica. If I have a system of two equations with three unknowns, how can I get to list all possible solutions for the unknowns? Here is what I ...

15 30 50 per page