Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [expression-form]

The tag has no usage guidance.

1
vote
1answer
38 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
60 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
52 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
124 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
53 views
5
votes
4answers
216 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
40 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
679 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 ...