Mathematica

Mathematica

• All Sites
• All Meta Sites

0 answers

## Given a start point and a direction vector, find point of intersection with a plane

In R3, I have a vector of arbitrary magnitude leaving pointA, which lies on one of the axis planes. I want to find pointB where a line in the vector's direction intersects a different axis plane. ...

3 answers

## What is the difference between linear regression on y with x and x with y

I'm plotting the regression line of (GDP$\%$ Change, Poverty Rate$\%$)$\to (x,y)$ in Mathematica What would it mean if I were to switch the axis? (Poverty Rate $\%$, GDP change $%$) ...

3 answers

## Working with implicit functions in Mathematica

Can I plot and deal with implicit functions in Mathematica? for example :- x^3 + y^3 = 6xy Can I plot a function like this?

1 answer

## Mathematica maximum of a list

I have a list of this form: {{1.39339, 11.5378}, {1.38379, 11.5362}, {1.37495, 11.5342}, {1.36668, 11.5319}, {1.35878, 11.5295}, {1.35199, 11.527}, {1.34565, 11.5246}, {1.34034, 11.5222}, ...

3 answers

## Is there a way to clear everything before starting in Mathematica?

In MATLAB there is the function clear to delete all current variables. This is very useful if you start something totally new and don't want to get conflicts with earlier calculations. I'm searching ...

3 answers | 2 days ago by lumbric on stackoverflow.com
0 answers

## How to generate a RandomWalk with n dimensions

How do i generate a RandomWalk with n dimensions? I already have some examples for a 1 or 2 dimensional random walk but now i have to code a random walk with n dimensions and i seriously don't know ...

1 answer

## Mathematica: reformulating polynomial coefficients

I am looking for a way to put the polynomial: x + 5x^2/2 + 3x^3 + 8x^4/3 + 43x^5/24 + 43x^6/48 into a more "Taylor"-ish form: x/1! + 5x^2/2! + 18x^3/3! + 64x^4/4! + 215x^5/5! + 645x^6/6! My main ...

1 answer

## Plotting a infinite potential well (double well)

I've been trying to plot a double well potential graph with a piecewise potential function that has 3 regions, my code however is not properly plotting what I am looking for. This is what I got so ...

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 | Apr 26 at 16:59 by K-1 on stats.stackexchange.com
0 answers

## Why wont my graphs plot?

f [x_] := (x + ln (x) - 3) Plot[f[x], {x, 0, 5}] This is my first time using wolfram and I don't see why my graph always comes out empty with no plots. What am I doing wrong?

2 answers

## Solve $4 A (L^{3/4}) - wL (((24 - L) w)^{-3/4}) = -(((24 - L) w)^{1/4})$ for L? Using Mathematica

I'm trying to solve $$4 A (L^{3/4}) - wL (((24 - L) w)^{-3/4}) = -(((24 - L) w)^{1/4})$$ for $L$ using Mathematica, and it spits the following out: Solve[4 A (L^(3/4)) - wL (((24 - L) ...

0 answers

## Mathematica Average Value of Integral Function

What is the best way to find the average value of a function over a specific interval in mathematica? I can not figure it out.I have two points on the interval and need to find the average value.

2 answers

## How to use SphericalPlot3D in Mathematica

I’m learning how to use SphericalPlot3D. I’m using the following statement: SphericalPlot3D[Cos[θ],{θ,0,π},{ɸ,0,2 π}] I was expecting to get a cosine curve along y-axis rotated around the same ...

2 answers | Apr 22 at 7:37 by Mikael Hakman on stackoverflow.com
0 answers

## NDSolve accuracy

We're asking NDSolve to solve x'' + x == 0 to 20 digits, but when we compare to the true solution, we only see 9 correct digits. Are we not using NDSolve correctly? Clear["Global`*"] sol = ...

3 answers

## Parsing and generating JSON

Mathematica's list of built-in formats is pretty extensive; however, JSON is not on that list. Is there an existing solution for generating and parsing JSON in Mathematica, or are we going to have to ...

3 answers | Apr 21 at 20:17 by Pillsy on stackoverflow.com
1 answer

## How to convert a list of element to a list of lists

I have a list which looks like {1,2,3,4,5} and so on. Is there any quick way of changing it to {{1},{2},{3},{4},{5}}? Thanks

1 answers | Apr 21 at 4:59 by user3182260 on stackoverflow.com
0 answers

## convert c++ into wolfram code

i have a c++ code for gaussian elimination and i want to rewrite it in wolfram so to make it on my own. Here is the code: ...

0 answers

## How can I mark a specific point and vector in Mathematica?

How can I mark a specific point and vector in 3D in a Mathematica plot? I've draw a surface but I need to mark a point and vector on it. Thanks!

0 answers

## Solving Quadratic Equation By Using Mathematica

I was bothered with the following very simple problem: Solving a quadratic equation $x^2+x+1=0$ in mathematica if I use "solve" function in mathematica as below: Solve[x^2 + x + 1 == 0, x] I ...

1 answer

## A series solution of the differential equation: $\frac{d^2u(x)}{dx^2}+ u(x)^n = 0.$

Consider the differential equation $\frac{d^2u(x)}{dx^2}+ u(x)^n = 0.$ Let the solution be $u(x) = u_0(x) + p u_1(x) + p^2u_2(x) + \cdots +p^m u_m(x).$ Now we are interested in substituting the ...

0 answers

## Plotting vectors and planes in 3D with Mathematica

I am trying out the Mathematica software, and playing with representing in 3D some vector projections on a plane. I got to this point: I know... It is not looking that impressive, and would like ...

1 answer

## Formal expansion of matrices using Maple or Mathematica

I'd like to evaluate some powers of sum of matrices, say I would like to evaluate $\left(A+B\right)^{n}$ with $A$ and $B$ some matrices. Since I'd like to go to high order, I'd like to use Maple or ...

1 answer

## Why is the right half of the output for the Plot[(-x)^(2/3), {x, -30, 30}] missing?

I want to get a figure for $(-x)^{\frac23}$. After using the following code, I found that only the left part of the function $(-x)^{\frac23}$ was plotted. Plot[(-x)^(2/3), {x, -30, 30}] Here is a ...

1 answer

## Computation of Confluent Hypergeometric Function of the First Kind in Matlab

Is there a way to perform a computation of the confluent yypergeometric function of the first kind in Matlab (specifically in R2013a)? In Mathematica, this function is called Hypergeometric1F1. I've ...

1 answer

## How to construct Taylor expansion of arbitrary function in Matlab?

I am reading a book titled "Homotopy Analysis Method in Nonlinear Differential Equation" by Shijun Liao. In chapter 13 Application in Finance: American Put Option, there is appendix about mathematica ...

0 answers

## Mathematica integration

I want to integrate $$\int (-\frac{1}{2 p^{1/4}\sqrt{\left(-\sqrt{p}+\text{a}\right)}})$$. Using Mathematica \text{Integrate}\left[-\frac{1}{2 ...

0 answers

## Random “Path” Generation Code

I am currently working on generating a random path for a game I am recreating. It is based off of the "Thin Ice" game in Club Penguin where you play as a fire character, walk across a path of ice, and ...

0 answers

## R : Triple summation over function dependent on three indicies

I am attempting to use R to to a triple summation over a function with three indices. I was easily able to do this in Mathematica with the following code: out = Sum[B[G[[k]]] * A[G[[k]], G[[j]], ...

1 answer

## Using Dsolve in mathematica

I was using dsolve to find the solved differential equation for the Schrodinger equations involving magnetic resonance and i am getting an error. DSolve[{I*a'[t] == .5*(w0*a[t] + w1*Cos[w*t]*b[t]), ...

1 answers | Apr 15 at 14:06 by user6207106 on stackoverflow.com
0 answers

## Heat map with opacity gradient

I have two heat maps that I want to overlay to create one combined map. I am looking for a way to make an opacity/alpha gradient instead of a color gradient; that is, transparent->blue instead of ...

15 30 50 per page