Mathematica

Mathematica

  • All Sites
  • All Meta Sites

0 answers

Why do results differ in Mathematica and R?

I translated a Mathematica code to R. The code involves a while loop. I think I translated everything correctly but the Mathematica code needs 15 and the R code 8 iterations to converge. Moreover, the ...

3 answers

Update (reload) mathematica package after changes

I'm trying to find a shortcut to the following loop. When developing a mathematica's package one is implementing changes to the .m file's code and then want to test the changes in another notebook. ...

3 answers | 20 hours ago by Dror on Stack Overflow stackoverflow.com
1 answer

Mathematica 10 DateObject to TimeObject quirk

If I create a list like this: x = {TimeObject[DateObject[{2015, 09, 9, 01, 01, 01}]], TimeObject[DateObject[{2000, 01, 1, 09, 09, 09}]]} (I cannot post images here but the list contains ...

1 answer

Mathematica - using Join-function for a vector in a loop

I want to combine some vectors in a loop with the Join-function but unfortunately it does not work. combination 1: i=3; k=4; v1 = Range[k] (* {1, 2, 3, 4} *) Now I want to combine vector v1 3 ...

2 answers

Graeffe's root finding method

What are the practical applications of Graeffe's root finding method?I searched a lot but couldn't find.I found that it is used in aerodynamics and electric circuit analysis.But don't know much about ...

1 answer

plot not showing legend when used in Miktex

A have density plot in Mathematica as ShowLegend[ DensityPlot[Sin[x y], {x, 0, \[Pi]}, {y, 0, \[Pi]}, Mesh -> False, PlotPoints -> 30], {ColorData["LakeColors"][1 - #1] &, 10, " 1", ...

1 answer

Is mathematica a functional programming language?

Is mathematica a functional programming language? what i intend to ask his that i keep reading that mathematica is a conditional rewrite system. I want to know what is this conditional rewrite ...

1 answer

Why is it incorrect to integrate by $d(2x)$?

I tried to prove the volume of a cone. If you let the radius be $r$ and let the height be equal to the radius, then all you need to do is integrate the area of a circle with radius $r$ by $dr$. ...

0 answers

Visualising a 1-(50,15,15) design.

The problem I have is the visualisation of a 1-(50,15,15) design. That is a set of 50 points and 50 blocks (lines), so that each point is on 15 lines, and each line contains 15 points. My attempts ...

2 answers

Mathematica - Exclude a String from a String Search

I'm trying to select the most frequently occurring key words on a table. I need to search for the number of occurrences of a word in a list that DOES NOT include a given second, third, fourth, etc. ...

1 answer

Minimizing NExpectation for a custom distribution in Mathematica

This relates to an earlier question from back in June: Calculating expectation for a custom distribution in Mathematica I have a custom mixed distribution defined using a second custom distribution ...

0 answers

After submitting a .m batch job with Slurm, can I edit my .m file without changing my original submission?

Say I want to run a job on the cluster: job1.m Slurm handles the batch jobs and I'm loading Mathematica to save the output file job1.csv I submit job1.m and it is sitting in the queue. Now, I edit ...

0 answers

CAS Problem with integrals

I got this problem thrown at me, unfortunately I lack context at the moment but I thought Maple or Mathematica would solve it anyways. I have a function $f$ over $x$ and $y$ such as this (Maple) f ...

1 answer

transform equation with Mathematica

I'm try to use Mathematica to transform a couple of komplex equations, but I didn't get the right syntax. Solve[{EI*w[x] == Piecewise[{{(x - a)^3, x >= a}, {0, x < a}}]*F*(1/6) + ca*(x³)*(1/6) ...

1 answers | Aug 24 at 5:57 by Christopher on Stack Overflow stackoverflow.com
2 answers

Hold any argument

Is it possible to define a function that holds arguments at given positions ? Or to do something like HoldLast as a counterpart to HoldFirst ?

2 answers | Aug 23 at 20:52 by faysou on Stack Overflow stackoverflow.com
0 answers

What is following limit?

$\mathsf{Mathematica}$ evaluates $$\lim_{N\rightarrow\infty}\lim_{\epsilon\rightarrow0^+}\frac{\binom{N^{\frac{3}{2}}-N^{\frac{1}{2}}}{N^{1-8\epsilon}}}{\binom{N^{\frac{3}{2}}}{N^{1-8\epsilon}}}$$ to ...

2 answers

Adding mathematica plot symbols to latex figure legend

I have a graph that I have drawn in Mathematica using this code: ListPlot[{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}, PlotMarkers -> {Automatic, Large}, PlotTheme -> "Default"] I have exported the ...

2 answers | Aug 21 at 15:00 by Steph D on Stack Overflow stackoverflow.com
2 answers

Reference for closed form integral of $\int_0^1 dz\,z^n/(z-a)$

Is there a closed form (non-recursive) expression for the definite integral $$\int_0^1 dz \frac{z^n}{z-a}, \qquad n\in\mathbb{Z}_+ \text{ and } a\notin (0,1)$$ for general $n$ and $a$ given in terms ...

1 answer

Frequency of a wavelet filter

Assume that I have decomposed a data set using Symlet Wavelet with six levels. How can I estimate the approximate frequency interval of each level? That would be great if you consider your answer in ...

1 answers | Aug 21 at 3:36 by K-1 on Cross Validated stats.stackexchange.com
1 answer

Mathematica in the classroom?

In this (https://www.youtube.com/watch?v=p9sYzMG-43k) session Dan Meyer uses Excel, Google and Wolfram Alpha in a class (of teachers) for calculation. He himself uses them on a laptop projected for ...

1 answer

Conditionally deleting rows in a matrix

I have a 22x14 Matrix. Some of the entries in the matrix are '-1', signifying missing data. I'd like to be able to delete a Row whose jth entry is '-1' I'd like to be able to delete a Row whose ...

0 answers

Mathematica: How can I place the axes label differently?

I am trying to place the axes label in a barchart using the "Placed" command in a position different from the end of the axis. It works in other graphics, but not with BarChart. Is there a ...

1 answer

Mathematica: FindArgMax does not return a global maximum

I have a fairly highly oscillating function, and I need to find the ArgMax in the interval (-Pi,Pi). When I Plot the function it is clear that FindArgMax picks the wrong maximum. I have tried ...

1 answer

How to stop Mathematica rounding the last digit of a number when converting it to string using ToString?

In Mathematica 8, numbers with no more than 16 significant digits are converted correctly, e.g. ToString[ NumberForm[0.000001234567891234567, Infinity , ExponentFunction -> (Null &)] ] ...

1 answer

Newton backward interpolation in Mathematica

I have the following task: Create a function (in Wolfram Mathematica), called $\mathrm{NewtonBackward}$[n_,x0_,h_,f_] which interpolates backwards the function $f(x)$ with nodes {x_i = x_0 + ...

2 answers

Automatising mathematica to import files from several folders

I have data coming from an oscilloscope, and as I need to make small variations, I end up with a certain number of folders each of which contain two files that I need. The analysis conducted is ...

2 answers | Aug 16 at 23:00 by Alex on Stack Overflow stackoverflow.com
0 answers

Matlab: How to solve a system of equations with several variables appearing multiple times

I have an equation looking like this: w1 = (1/EI)*(heaviside(x - a1).*(((x - a1).^3)*F1(1))/6 + (C(1, 1)*x.^3)/6 + (C(2, 1)*x.^2)/2 + C(3, 1)*x + C(4, 1)) + (1/GAs).*(- heaviside(x - a1).*(x - ...

1 answer

Selecting a matrix row by name Mathematica

I have a matrix in Mathematica defined as A = {{"a", 1, 2}, {"b", 3, 4}}. How do I select row "a" by name?? Everything I try just returns {}. Thanks

1 answers | Aug 12 at 10:42 by Steph D on Stack Overflow stackoverflow.com
0 answers

Fitting one set of data with two functions

I have a set of data (42 points): {{1.1*10^6, 1/21}, {600., 3/7}, {80., 5/7}, {100., 29/42}, {600., 3/ 7}, {600., 3/7}, {70., 31/42}, {500., 19/42}, {25., 37/42}, {25., 37/42}, {300., 4/7}, ...

3 answers

Lists' intersection keeping elements' order

I could use the function Intersection, but it returns a sorted list. That's why I have to do my own, but it looks too big. I hope it could be done shorter. lists = {{1, 2, 3, 4, 5}, {1, 2, 3, 4}, {2, ...

15 30 50 per page
1 2 3