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
0
votes
1 answer

What is the meaning of log(0,1)[x] in Mathematica 9.0?

everyone.I want to know the meaning of "log(0,1)[2,x]" in the out[8].What's the difference between log[2,x] and log(0,1)[2,x] in Mathematica?
Johiten
  • 31
  • 1
0
votes
0 answers

A question regarding asymptotics in mathematica

I am trying to see the asymptotics of the Var function as below, from the plot it seems it goes to $-\infty$, however, I also calculate its asymptotics which gives me a positive $+\infty$.. Why could this happen? Here is my…
chloe
  • 512
0
votes
0 answers

How to determine a threshold using Mathematica

The above is a result I got using Mathematica for my research. Assume that $l$ is fixed, and $\Theta\in[-0.005,0.005]$. I found that there is always a threshold $t_0\in(0.59,0.63)$ such that: The output on the right decreases to $-\infty$ as $t\to…
0
votes
1 answer

Is it easy to prove that for any $n$, $f^k(n)= 4$ for some $k$ or $f^k(n)= 1$ for some $k$ holds? (Mathematica book by Roozbeh Hazrat)

I am reading "Mathematica: A Problem-Centered Approach Second Edition" by Roozbeh Hazrat. The following problem is Problem 8.13 on p. 137: A happy number is a number such that if one squares its digits and adds them together, and then takes the…
tchappy ha
  • 8,690
0
votes
2 answers

Mathematica Equation Solving

Suppose I wanted to solve the following for $a[1], a[2], a[3]$ in the Mathematica code: (a[1]+a[3])*t+(a[1]+2*a[2])*t^2=0 with $a[1] = 1$ where $t$ is just a variable and the equation above is identically 0. How would I automate this in Mathematica…
Shayla
  • 1,023
0
votes
2 answers

limit of an expression

What is the limit of this expression in terms of some known mathematical constants (if any)? $$\lim_{x\to\infty} \left(\frac{x-1}{x}\right)^x$$
manav
  • 253
0
votes
0 answers

The meaning of this please $\in \mathbb{Z}_{10}$ ( with small 10)?

I need to know if it's the right meaning of this expression please : $\in \mathbb{Z}_{10}$ ( Z with 10 in the bottom): integer numbers / whole integer numbers set (with ten ). Can you please provide more details?
tib
0
votes
0 answers

Anticommutative rules in Mathematica

I am trying to create a product with the anticommutative rule in Mathematica using the operation $**$. I set in my rules the following line: before___ ** a_ ** b_ ** after___ :> If[OrderedQ[{a, b}] == True, before ** a ** b ** after, before…
0
votes
0 answers

how can I expand this for $k$

$$\sinh\sqrt{k^2-\Omega^2}$$ for $k$ in Mathematica. How do I expand this in Mathematica for $k$. In general, What would be the expansion of $\sin x$ in powers of $n$? in Mathematica
0
votes
0 answers

How do I properly declare this as a function in Mathematica?

I want to create a simple function that prints all prime numbers from 1 to x. I have the following code, which doesn't cause any errors from the kernel but it doesn't return anything: allprimes[x_] = For[i=0, i<=x, i++, …
Jaigus
  • 505
0
votes
1 answer

Mathematica asycn rendering of ListPlot

I'm currently working on some graph theory, and I'm checking the robustness of graphs, by removing random vertices from a graph and then check how many vertices are outside the giant component. Then I'll do that for a lot of vertices, and plot them…
0
votes
1 answer

How do I find the exact value of an expression with physical constants

I want to find the exact value for Rydberg constant, so I Type N[(1/(4*pi *eO))^2 * ((m *e^4)/((h)^3*c (4 pi)))] ; Needs[Miscellaneous`PhysicalConstants` ]; values = {e -> ElectronCharge, m -> ElectronMass, eO -> ElectricConstant, h ->…
0
votes
2 answers

Generate log of variable and append to existing dataset

I just started using Mathematica and I hope that someone can help me with a small piece of code: I have a variable "X" in a dataset A. I want to create a new variable called "logX" which is the log of the variable X and add it as a new column in…
0
votes
1 answer

Chain several operations in mathematica

I have an implicit expression ((x-a)/a)^2+(y/b)^2=1. I want to find dy/dx. Mathematica should first solve Solve[((x - a)/a)^2/a^2 + y^2/b^2 == 1, y, MaxExtraConditions -> Automatic] and on the result do (d)/(dx)(y = (b sqrt(a^2-x^2))/a) = -(b…
Stepan
  • 1,093
0
votes
1 answer

Problem in trying to define an integrating function in Mathematica

I need to define a function that integrates a function in some interval and returns its numerical value. I am not allowed to use built in functions for integrating in Mathematica. This is my code that won't…
bonehead
  • 951