1
vote
0answers
53 views

creation a table from a default module [on hold]

I have used of bisection method for finding the root of a function: ...
0
votes
0answers
37 views
2
votes
0answers
41 views

Functionality of FindMaximumFlow

I know that the superseeded function NetworkFlow (needs Combinatorica) uses Goldberg-Tarjan's Push-Relabel-Algorithm but i cant find any information on Mathematica's build-in-function ...
3
votes
1answer
112 views

Find a Fourier series from discrete data

I am trying to fit a Fourier cosine series to discrete data. I read through this, but I was not able to understand it. This data should be periodic with a period of $0.2 \textrm{m}$ and it is the ...
5
votes
2answers
67 views

How to make a notebook take action whenever a particular symbol is defined or redefined?

For teaching purposes, I want to create a Mathematica notebook that will "notice" when the user defines or redefines a variable or function of a particular name, so that it can check the value and ...
0
votes
0answers
25 views

Changing the $CloudBase variable [on hold]

How can I change $CloudBase to some directory on localhost and successfully use it for CloudDeploy?
3
votes
1answer
530 views

Methods for NSolve

I've been using NSolve a moderate (50-100 equations) size system of linear equations and it has been working splendidly (Solve ...
4
votes
2answers
107 views

Imaginary terms in the derivative of Jacobi theta function (2) on the real line

I am trying to calculate/plot the derivative of the second Jacobi theta function $d\theta_2(0, e^{-\pi t} )/dt$. Calculating or plotting the function itself works fine: ...
9
votes
1answer
84 views

Is there a way to change the indentation behavior of the postfix operator //?

For example, using newlines after // results in some really weird indentation: Ideally, I'd love to be able to do something like this: ...
3
votes
1answer
49 views

Bilateral ZTransform

Is there support for bilateral Z-transform in Mathematica, or a third-party package?
4
votes
3answers
63 views

Replace values in a list based on conditions

I have a list with negative and positive numbers list = {-1, -2, 1, 2} and I want to replace all negative values with 0 and all positive values with 1 ...
6
votes
5answers
176 views

How to write an operator that acts on pure function (to give another pure function)

I would like to write an operator oper that acts on a pure function f with an undetermined number of arguments, with the syntax ...
3
votes
2answers
56 views

An conditional Sum of elements in Array

Consider we have: list = {{2, 3}, {3, 30}, {3, 2}, {4, 53}} and we want to compare the first elements and sum the second elements if first elements are similar ...
1
vote
1answer
62 views

LogPlot hangs but Plot does not

This is a bit involved example, but I have not been able to reproduce it in more simple cases. ...
0
votes
0answers
44 views

Compilable function with the functionality of SingularValueList

I'm doing something that involves finding the singular values of a lot of matrices. Basically I need to find singular values of $n$ matrices of dimension $n\times n$, where $n$ is as large as ...
0
votes
0answers
28 views

Calculate dependent probabilities [on hold]

Imagine that two raffles will happen, every raffle will reward 1 person. 10 people will participate. The first raffle will reward 1 person. The second raffle will reward another person, but the ...
0
votes
0answers
27 views

Defined Function fails to Evaluate [on hold]

I apologize if this post is below quality, and please request more detail if necessary. I have been having this issue recently: I define a function as such: f[a_list, b_]:= ..... For a standard ...
7
votes
0answers
83 views

Wrapping text around pasted graphic

I would like to use Mathematica to create all my documents for my high school math class. I cannot, however, find a way to copy and paste a diagram (let's say from Geogebra) and then place it where I ...
1
vote
1answer
34 views

Expand the plotting range [on hold]

When use the following command to plot a graph Plot[x^(1/3), {x, -1, 1}] Mathematica does not show the range [0, 1]. It ...
3
votes
1answer
167 views

Understanding polyharmonic splines

Rahul Narain and J.M. gives implementation of the thin plate polyharmonic splines in this post. Rahul Narain's method is clear. J.M.'s is convenient to reuse. But J.M. used too many ...
0
votes
0answers
40 views

being a function in a multiple steps and using syntax for being shortened

My desire is to access to a table with the bellow construction: Table[desired[t], {t, 0, 2, 0.1}] For achieve to desired[t] ...
7
votes
1answer
235 views

Two identical functions give different answers

I am new to mathematica and I hope this is a simple problem. I have two identical functions that only differ by the variable names: ...
3
votes
2answers
101 views

DiscretizeRegion of ImplicitRegion too small

I have a 2D function that has some sharp peeks within the my domain. I need to find a tight region that contains these sharp peeks. The following is an example of what I would like to do. An example ...
2
votes
1answer
66 views

Expand a product of operators

Lets suppose I have a family of operators $f_i$, and unknown c-numbers $a,b,c$. I want to expand such products: $(f_1+f_2+c)(f_3+f_2+b)$ into $b c+b f_2+b f_1+c f_2+c f_3+f_2^2+f_1 f_2+f_2 f_3+f_1 ...
1
vote
0answers
49 views

How to test for a non--zero rational function? [duplicate]

I want to test if a rational function in one variable is identically zero. I was surprised that just writing f==0 doesn't do it. I wrote the following code: ...
2
votes
2answers
292 views

Writing a function that returns a (usable) function

I am trying to create a function that returns Arnold's Cat Map of size n iterated k times. I can get something out of the Function command, but I can't figure out ...
2
votes
2answers
44 views

How can I pass values to a NamedSlot in TemplateApply

str="``;`v`;`v`;``"; template=StringTemplate@str; TemplateApply[template,CharacterRange["A","Z"]] (*"A;;;D"*) I want to get the result as: ...
1
vote
2answers
152 views

Having trouble translating Matlab `fsolve` into Mathematica

I searched the site and found that someone said FindRoot is equivalent to fsolve, however, without proper options, ...
5
votes
2answers
236 views

DSolve returns a wrong solution

This wrong solution exists from mma9 to mma10.1: ...
0
votes
0answers
37 views

Mathlink returning wrong output [on hold]

My code below shows the function I am putting into the kernel to compute mathskernel.Compute("NSolve[" + yaxisin + ", y]"); where ...
30
votes
3answers
688 views

A better “VisibleSpectrum” function?

Since ColorData["VisibleSpectrum"] is wrong, I would like to have a more accurate function to use. Can this information be extracted from Mathematica itself?
15
votes
1answer
146 views

Dataset vs an association of associations

Associations with a record structure (e.g., a flat table) can be organised in one of two main ways. First as a list of associations, which is also used in the case of Mathematica's data set ...
2
votes
1answer
42 views

Plot does not take range with OptionValue and PlotRange option

I am making a function that is to use Show to overlay a few plots of a function. I want the first Plot in ...
23
votes
3answers
543 views

How can we make publication-quality PlotMarkers without version 10?

Suppose that for certain reasons we are not yet using Mathematica version 10, or we have a version with buggy PlotMarkers. It is well known that the default markers ...
15
votes
1answer
221 views

Faster binary Hamming weight for big integers?

While working on an answer to Count the sequences in an array I found that DigitCount was the bottleneck in my code when used as ...
3
votes
1answer
121 views

Programming for matrix manipulation

I want to write a programme which operates on nd x nd matrices. The programme looks the matrix as a n x n block matrix where ...
2
votes
0answers
61 views

Why Function is compiled?

Function isn't mentioned in the list of compilable function, but it can generally be compiled when it's formed by compilable functions, a simple example is: ...
1
vote
0answers
76 views

Graphics3D artifact in Mathematica 10.1 64bit Home Edition - Windows 7? [on hold]

Please confirm if you face the same issue in your system (In gnu-linux it is working fine). Notice the right and bottom lines - they appear for some reason in every ...
0
votes
2answers
43 views

Show a part of the output but be able to work further with the full output [on hold]

Is it possible to display a portion of the output without dropping the hidden data? For example, when I use Shallow, a part of the output is actually dropped.
8
votes
4answers
110 views

Cluster numbers into n partitions so that each partitions sum is closest to total/n

For example having data data = {16, 4, 17, 10, 15, 4, 4, 6, 7, 14, 9, 17, 27, 6, 1, 9, 0, 12, 20, 8, 0, 3, 4, 0, 3, 4} I want to cluster them int 4 partitions ...
-2
votes
0answers
37 views

Graphs making on Mathematica by using HAM [on hold]

I'm working on HAM, on graphs making i encounter a problem over and over again that on even iteration it gives a graph of different shape and on odd iteration it gives totally different shape of ...
10
votes
1answer
175 views

Header and footer banners in Slide Show style

I would like to create Mathematica slide shows that contain several tailored, fixed banners as headers and footers, much as MS Powerpoint, MS Word, Apple Pages, and LaTeX documents allow one to ...
18
votes
3answers
3k views

Data interpolation and ListContourPlot

I am fairly new to Mathematica and I have two quick questions on using it for a Hydrology and Hydrogeology class. One is about data interpolation and interpolating without any data defined in an area. ...
7
votes
1answer
984 views

Manipulate (Linux version of Mathematica)

I'm runnning Mathematica 9 on Ubuntu 11.10. After installing CDF player I still have problem (most of time) with Manipulate. Only way I'm able to change value of a ...
4
votes
1answer
233 views

How to draw a tropical surface?

By definition, a tropical surface in $\mathbb R^3$ is the set of points $(x,y,z)$ where the maximum $f=\max(f_1,f_2,\dots,f_n)$ is attained at least twice, here $f_i$ stand for some linear functions ...
-3
votes
0answers
53 views

Find the tangent at a homogenous point to a curve [on hold]

I'm new to Mathematica. I want to find the tangent at the point $p=(6,5,1)$ to the following curve: ...
14
votes
0answers
131 views

Is plot polluting my context?

Bug introduced in 10.0.2 or earlier and fixed in 10.1.0 Whenever I plot something 3 temporary variables get added to my current context. Example (fresh Kernel): ...

15 30 50 per page