Questions tagged [mathematica]

For questions concerning the popular computational software program published by Wolfram Research. (Note: you are more likely to get quicker and more accurate response if you ask the question on their user forum or on the Mathematica Stack Exchange site.)

For questions concerning the popular computational software program published by Wolfram Research. (Note: you are more likely to get quicker and more accurate response if you ask the question on their user forum or on the Mathematica Stack Exchange site.)

714 questions
1
vote
1 answer

Mathematica VectorPlot with Piecewise arguments

Why won't this output the VectorPlot? It outputs number (that even seems correct for the application), but I can't get a picture out of them :( BbuitenBolR[r_, \[Theta]_, R_] := Cos[\[Theta]] (1 - R (3 + R^2 - 3 R Coth[R])/r^3) /. R ->…
rubenvb
  • 599
1
vote
1 answer

Relationship between bitwise XOR and the equations

I am studying bitwise XOR. If a, b, c are integers ranging from 0 to 18,446,744,073,709,551,615, I belive the following work for both $=$ and $\neq$: $1.\forall a,b,c(a=b\to a \oplus c=b \oplus c)$ $2.\forall a,b,c(a \oplus c=b \oplus c\to…
alancc
  • 21
1
vote
0 answers

What is the convergence property of $a_k$ when $a_{k+1} \le c_k a_k + b_k$?

what is the convergence property of $a_k$ when $a_{k+1} \le c_k a_k + b_k$? Here, $c_k < 1$ and $b_k$ are decreasing functions of $k$.
Dony
  • 11
1
vote
1 answer

Mathematica and Vector Representation of Planes

If the vectors $\vec{u}$ and $\vec{v}$ emanate from a point $A$, then its equation is $\hspace{2in}$$x = A + su + tv$, where $s, t \in \mathbb{R}$. I'm wondering how I can display these planes in Mathematica. Thank you, Kaster (see below).
Trancot
  • 4,021
1
vote
1 answer

Why is Mathematica unable to solve an integral than can solved with WolframAlpha?

The integral in question is this: $$\frac{1}{2}\int_0^{2\pi} [\cos^{-1}(\sin x)]^2~dx$$ The Mathematica code is Integrate[(Acos[Sin[x]])^2/2, {x, 0, 2 Pi}] Attempting this with Mathematica appears to be fruitless. It won't even do a numerical…
Cye Waldman
  • 7,524
1
vote
2 answers

How to make a number out of other numbers in mathematica?

I’m not entirely sure if this is possible, but I would like to make numbers composed of other numbers. For example, given $a$, $b$, and $c$, I’d like to make a number such that the digits are $a.bc$. So, if $a = 1$, $b = 2$, and $c = 3$, we would…
1
vote
2 answers

How to solve transcendental equations with Mathematica 7?

I want to solve transcendental equations by Mathematica 7. Solve does not help me, reduce - as well. Seams that I shoulkd use FindRoot, but it does not give all solutions. It gives only one solution. So how can I solve transcendental equations? Here…
Narek
  • 135
1
vote
0 answers

Find the quadratic spline $s(t)$, with $z_0 = 0$, for points $[t, 1/(1+t^2)]$ with the knots $t = 0, 1, 2, 3, 4$

Find the maximum of $[s(t + .5) − 1/(1 + (t + .5)^2)]$ for $t = 0, 1, 2, 3, 4$. My code so far: t = { 0, 1, 2, 3, 4}; y = {1, .5, .2, .1, (1/17)}; n = Length[t]; z = y; z[[0]] = 0; For[i = 2, i <= n, i++, z[[i]] = -z[[i - 1]] + 2…
johnson
  • 519
1
vote
0 answers

How do I extract the factor in Mathematica

If I get a equation $\left(\left(1-s_K\right) K^w+\left(1-s_L\right) L^w\right)\left(4 b a_m-4 a+2 b \tau +c \tau n^w-2 c n \tau \right)-\left(s_K K^w+s_L L^w\right)\left(4 b a_m-4 a+2 b \tau -c \tau n^w+2 c n \tau \right)$ , and how do I use…
XJ.C
  • 245
0
votes
1 answer

Possible bug in Mathematica?

I'm running Mathematica 7.0.0 and came across this weird calculation (lines 1-14). f[x_, r_] := x*(r - x)*Exp[-Pi*I/(2 r)*x^2]; g[x_, r_] := Exp[-Pi*I/(2 r)*x^2]*(r - Pi*I*x^2 - 2*x + Pi*I/r*x^3); int[r_] := FullSimplify[ Integrate[f[x, r],…
fuglede
  • 6,716
0
votes
2 answers

Create list of {x,f(x)} pairs

How can I do this in Mathematica: r=Range[0,20,0.13]; fr = HeavisideTheta[r]; data = somecoolfunctionsinmathematica[r,fr] So that data now is in the form useful to Fit: {{r_1,fr_1},{r_2,fr_2},...} Thanks!
rubenvb
  • 599
0
votes
1 answer

A function of two functions that loses dependence on an argument

Say I have two functions: f[a_,b_]:=a + b g[c_,d_,e_]:=c + d - e And I define a third function: h[u_,v_,w_,x_]:=f[u,v]+g[w,x,u] It's clear (to me, a human, at least) that h doesn't depend on u, but Mathematica still requires this extra argument to…
rubenvb
  • 599
0
votes
1 answer

Mathematica Homework Question

I had a mathematica assignment the other day that was fairly simple. I thought I did it correctly, but I guess not. Question: Write a single Mathematica Command which will display (plot) both $y = x\sin(2x + \pi)$ and $y = e^x$ on a single set of…
Gosre
  • 21
0
votes
1 answer

Using Mathematica to know the number primes that are contained in a given interval

So I want to know basically how to determine how many prime numbers (integers that can only be divided by 1 and themselves) are contained in a given interval. Thank you.
0
votes
1 answer

Problem with a loop in Mathematica

I am trying to create a loop in Mathamtica, where i get all $i$'s (with a certain bound, of course) for which the following expression holds: $7^{41\ast i}\equiv 3^{41}\, mod\, p$, where $p$ is just some number. I tried to use $while$, but it didn't…
Lullaby
  • 2,361