Questions tagged [expression-form]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

ToExpression[“string”,TeXForm] doesn't work

I want to convert LaTeX equation to Mathematica code. I want to use ToExpression["x", TeXForm] to input some equation in Mathematica. However, my mathemtica doesn't ...
13
votes
1answer
545 views

How can I obtain a complete list of the kinds of atomic expressions in the Wolfram Language using only the language itself?

I mean, Wolfram is a language--it's words are infinitely combinable. According to answers to my last question, the only way I can find out if an expression is atomic is actually use the expression. ...
3
votes
2answers
111 views

What's the difference between 56 and Integer[56]? [duplicate]

I'm trying to grasp how to Wolfram Language uses symbolic expressions for everything. The concept of doing so makes sense to me, but the language doesn't behave how I predict. I understand how ...
2
votes
3answers
66 views

Find the number of true's in a TrueQ expression

How can I find how many times the code: Table[TrueQ[FractionalPart[Sqrt[n]] == 0], {n, 1, m, 1}] Gives the value True back for a variable $m$? So, we know that ...
0
votes
3answers
90 views

How to simplify an expression by substitution?

Sometime Solve and DSolve give a finial form of the solution, which is fine in may applications. However, in some cases, one may ...
1
vote
1answer
44 views

How do I force a fractional coefficient to exclude non-numeric symbols?

Short version of question: Suppose I have an expression: expression = a+3b; When I divide by 2, I get: expression/2 It is ...
2
votes
1answer
70 views

SubsuperscriptBox and SuperStar

I have a notational reason (using the Notations package) to have some symbols display as C*60 (with the 60 lined up under the *). Internally, this is represented in Mathematica as: ...
0
votes
1answer
51 views

How to get a logical expression instead of a value [closed]

Suppose I want to write out the terms of the binomial distribution: Sum[ Binomial[n, k] q^k (1 - q)^(n - k), {k, 0, n} ] This obviously gives me 1, however I ...
1
vote
2answers
53 views

Make two expressions look alike OR check that they are the same

I would like to compare my Mathematica calulations with the results from a paper. I get: ...
1
vote
1answer
135 views

How can Mathematica take a prefactor in front of the relation

I have the following term in an expression $$\frac{q_B' \sin2q_B}{P_B Q_B^2}(2 Q_B P_B - \sin^2 q_B \Pi_B) q_1 q_1'$$ the prime denotes differentiation w.r.t a coordinate. Some additional ...
1
vote
0answers
59 views
5
votes
4answers
219 views

Determine whether some expression contains a symbol doing nothing?

I have expression like this: expr = xuyz; then Head[expr] = xuyz But I wanted the product of four factors, so it should ...
0
votes
0answers
41 views

How to derive closed-form expression for a variable in an equation? [duplicate]

I have an equation $q = \frac{f + 2 f^2 + 3 f^3}{1 + 2 f + 3 f^2 + 4 f^3}$ and want Mathematica to derive a closed-form expression for real solution to $f$. I've tried running the following code: <...
3
votes
1answer
704 views

Using FortranForm for d0 notation? [duplicate]

When I use FortranForm, it changes 2*a^2 into 2*a**2 which is fine, but if I want the expression in a form such as, 2.d0*a**2 which represents an integer to be ...