Skip to main content

Questions tagged [output-formatting]

Specify and control how Mathematica formats its output, including rich text, equations and graphics.

Filter by
Sorted by
Tagged with
2 votes
0 answers
113 views

Expression -(a*b) and other superfluous parentheses in OutputForm

Mathematica sometimes places parentheses where technically none are needed, especially siding an unary minus sign. Some I would condone: a^(-b). Some look silly: <...
Hauke Reddmann's user avatar
0 votes
0 answers
30 views

How to prevent factorization of polynomials in output

The output of my program is a matrix with polynomial entries. Most often Mathematica rearranges the polynomials with some partial or full factorization, as in $p^2q+q^2(p+q)$ or $p(p+q)$. I would like ...
Maesumi's user avatar
  • 775
0 votes
0 answers
27 views

Force exponential form for trigonometric function [closed]

I have an equation involving sines and cosines. Is it possible to get the equivalent equation using $e$ and $i$? (Exponential representation)
Page not found's user avatar
2 votes
2 answers
85 views

How can I convert `Sin[2 x]` to `\sin 2x` and put result of Mathematica in a list in LaTeX like this?

I tried ReplaceAll[ Table[{Sin[2 x] == Sqrt[i]/2, Expand[Reduce[Sin[2 x] == Sqrt[i]/2, x, Reals]]}, {i, 0, 4}], C[1] -> k] and got I copy the result ...
Laurenso's user avatar
  • 1,054
1 vote
1 answer
85 views

How to determine the n th number of Pi?

I use N[Pi, 10^3] 3.14159265358979323846264338327950288419716939937510582097494459230781 6406286208998628034825342117067982148086513282306647093844609550582231 ...
Thuy Nguyen's user avatar
  • 1,097
3 votes
1 answer
88 views

Defining an output format that doesn't break Ctrl+Shift+I

I'm used to pressing Ctrl+Shift+I (or N if I want a shorter form) to reformat my input cells in a nicer way after editing them, e.g., to remove unnecessary parentheses, add or remove spaces as needed, ...
Najib Idrissi's user avatar
1 vote
1 answer
74 views

How to replace C[1] in solutions of trigonometric equations into k?

This is my code Table[{HoldForm[Cos[3 x + 2 Pi/5]] == Sqrt[i]/2, Reduce[Sin[2 x] == Sqrt[i]/2, x, Reals]}, {i, 0, 4}] How can I replace C1 to ...
John Paul Peter's user avatar
2 votes
1 answer
98 views

Outer function for nested list

I have the following routine where I build a pair of function name lists {Flist, Klist} and 1D argument list {a1,a2,a3,a4,a5}: <...
seva011's user avatar
  • 316
5 votes
2 answers
131 views

Syntax error when running file created with Save which contains backslashes

I am doing a nested integration. So far the result was successfully saved with Save["filename.wl", IntOutput] and looked as following: ...
seva011's user avatar
  • 316
0 votes
1 answer
50 views

Appending Tabs to an existing TabView output

I would like to do a kind of versioned TabView for several runs of the same code. I would like some help in fixing this prototype code: ...
ogerard's user avatar
  • 959
0 votes
0 answers
34 views

Plotting a different data set

I am trying to plot the following list in which for each value of x point, we have three different values for the y point list={{1,{1,2,3}},{2,{2,3,4}},{3,{5,6,7}}; ...
sined's user avatar
  • 583
2 votes
1 answer
77 views

Generate variables in multiple integral

I want to do a multiple integrate with n variables. When I change the value of n, I do not want to rewrite the variables in the integral manually like here: ...
Zsombor's user avatar
  • 185
0 votes
1 answer
35 views

Order of the output with simplification

How can I force mathematica to write the output of the following expression in the correct order? Also, how is to multiply the constant pre-factor by the terms inside the bracket? Input ...
SciJewel's user avatar
  • 434
1 vote
0 answers
28 views

Changing mouse over grid behavior

How to achieve that mouse over Grid is always an arrow like we see on first image (when mouse is over an item of the grid) and never the the shape we see in the ...
azerbajdzan's user avatar
  • 18.8k
1 vote
0 answers
28 views

Can we find (and understand) the ordering functions used in the various output forms?

Can we use (and perhaps even understand) the sorting functions used in the various output forms (such as OutputForm, TraditionalForm, TeXForm, etc...). This is motivated by the fact that I would like ...
Kvothe's user avatar
  • 4,491
0 votes
0 answers
44 views

How can I get correct dashed line of this Intersection?

This is my code ...
minhthien_2016's user avatar
1 vote
0 answers
44 views

How to get a single line title in a Manipulate box? [closed]

I'm having a text output issue with the following code: ...
Cham's user avatar
  • 4,093
0 votes
1 answer
63 views

How can I find minimum of the expression $y - 5 x$ knowing that $y \log _{3}(3 x+y+9)=\left(x^{2}+3 x+y\right) \log _{3}(x+3)$?

I am trying to find minimum of y - 5 x knowing that y Log[3, 3 x + y + 9] == (x^2 + 3 x + y) Log[3, x + 3], x >= 0, y >= 0...
minhthien_2016's user avatar
0 votes
0 answers
53 views

How to obtain the output form as Cos[ω t] instead of Cos[t ω]?

When I type Cos[ω t] MMA gives me the output Cos[t ω] Is it possible to flip the positions of t and ω? Traditionlly, angular ...
metroidman's user avatar
0 votes
0 answers
32 views

Modeling with different outputs size

I have lists of input and output. I want to perform the prediction operation but my outputs are different for each input and this causes an error. Can someone help me to write the model in such a way ...
Erfan's user avatar
  • 169
0 votes
1 answer
76 views

How can I show the expression of "Hypergeometric2F1Regularized[1, 1, 1 + n, 1 - p]"?

My formula is f3 = Integrate[(x*p/(1 - x (1 - p)))^(n - 1), {x, 0, 1}, Assumptions -> 0 < p < 1 && n > 1] and it gave me ...
karry's user avatar
  • 381
2 votes
1 answer
73 views

How to write a^2 - a b + b^2 - a c - b c + c^2 has the form a^2 + b^2 + c^2 - a b - b c - c a?

I tried ...
vector's user avatar
  • 201
6 votes
3 answers
117 views

How can I convert $(x - 1)^2 + (y + 2)^2 + (z - 5)^2 - 25 = 0$ to $x^2 + y^2 + z^2 - 2x + 4y - 10z + 5 = 0$?

With Maple, I tried expand((x - 1)^2 + (y + 2)^2 + (z - 5)^2 - 25 = 0); and got With Mathematica, I tried ...
Thuy Nguyen's user avatar
  • 1,097
1 vote
1 answer
68 views

Unable to get proper Latex format from Mathematica

Based on this answer, I tried this code ...
minhthien_2016's user avatar
2 votes
1 answer
94 views

Making a dynamic table

Given the data below: ...
Tugrul Temel's user avatar
  • 6,223
2 votes
1 answer
132 views

How can I keep the form when I use Expand[2a+3b]^5 and apply to all elements of a list?

I want to keep the form of the expression (2a + 3b)^5. I tried ...
John Paul Peter's user avatar
6 votes
3 answers
383 views

How can I output rational numbers in properly formatted parentheses?

I want to output this: If I input it like that, the output removes the parentheses, leaving just: What I tried: ...
მამუკა ჯიბლაძე's user avatar
2 votes
2 answers
142 views

How can I change x -- a into x + a when using Defer?

I have a list Clear["Global`*"]; list = {{7, 1, -5, 1}, {3, 1, -5, 3}, {5, 1, -3, 1}}; and I use Defer in ...
minhthien_2016's user avatar
4 votes
1 answer
97 views

How can I reduce the time to select three points on sphere to make an equilateral triangle?

I have this code ...
John Paul Peter's user avatar
1 vote
4 answers
129 views

What is wrong when I use Length[{a, b, c}] == 3 in this code? [closed]

I want to creat the triples (a,b,c) so that Length[{a, b, c}] == 3, I tried ...
Thuy Nguyen's user avatar
  • 1,097
2 votes
2 answers
233 views

How can I create some versions of exercises and get the LaTeX file?

Sometimes, I want to create some versions of exercises with the same content. For example, solve the equations: $x^2 - 5x - 6 =0$; $x^2 + 5x - 6 =0$; $2x^2 + 5x - 7 =0$. Then I solve each ...
minhthien_2016's user avatar
3 votes
1 answer
97 views

How to make pdConv not show the independent variables of functions

pdConv is a very good tool. How to modify pdConv (or a better way is to add an option?) to make the independent variables of the ...
xinxin guo's user avatar
  • 1,387
0 votes
2 answers
132 views

Integrating over an interval

I have a function I want to integrate, which is $v(t)$. solv = NDSolve[{v'[t] + (v[t])^2 + f == 0, v[0] == -I*k55}, v[t], {t, 0, 150}] Also, I have a range ...
Jules Alvarez's user avatar
1 vote
0 answers
61 views

What is another way to write this equations in this list?

I have mylist: mylist = {{6, 7, 6, 2}, {7, 9, 7, 3}}; Here are two ways that I write equations from mylist: ...
Thuy Nguyen's user avatar
  • 1,097
1 vote
0 answers
68 views

How to define additional 'OutputForm' formats?

I would like to define an additional OutputForm command such that, when applied to a long expression involving several variables (probably at different levels, ...
JuanC97's user avatar
  • 612
0 votes
0 answers
29 views

How can I get the result of TeXForm[HoldForm[1 x^2 + 1 x + 1 == 0]] is x^2 + x + 1 ==0?

Sometimes, I get the situation when using TeXForm and HoldFormof a polynomial. E.g ...
John Paul Peter's user avatar
7 votes
1 answer
449 views

How can I write Log[a]/Log[b] in the form Log[b,a]?

I solve the equation $2^x + 2^{x + 4} + 2^{x + 3} == 3^x + 3^{x + 4} + 3^{x + 3}$. I tried ...
Thuy Nguyen's user avatar
  • 1,097
8 votes
5 answers
2k views

How can I write the equation 9 x == 5 y + 8 z + 27 in the form 9x - 5y - 8z - 27=0?

I use myeq = CoplanarPoints[{{7, 4, 2}, {8, 1, 5}, {9, 6, 3}, {x, y, z}}] 9 x == 27 + 5 y + 8 z I am trying to write myeq in ...
Thuy Nguyen's user avatar
  • 1,097
2 votes
1 answer
42 views

Fitting a label spanning the leftover space in a grid

I would like to fit a label for a grid of images in the remainder of the columns on the last row. A minimal example and an attempt follows where the letters represent images. ...
Syed's user avatar
  • 55.4k
2 votes
1 answer
46 views

Split table into two parts and put them side by side

I have a table that I want to export as an image. The problem is that the table is quite long, so I want to split it and put it side by side (see reference image in case it is not clear. I have case 1 ...
dorrel's user avatar
  • 49
5 votes
4 answers
730 views

Express the number 2024 by the sum, difference, and product of other numbers

I know that (I found it on Facebook, https://www.facebook.com/search/top?q=tran%20nam%20dung) $2^3 + 3^3 + 4^3 + 5^3 + 6^3 + 7^3 + 8^3 + 9^3 = 2024$ and $1234 - 5 + 6 + 789 = 2024$. $1 + 2 * 3 * 456 + ...
minhthien_2016's user avatar
2 votes
1 answer
101 views

How to find extra points of a graph in a list?

I have a list: list = {{-4, -7, -3}, {-2, -5, -1}, {1, -2, -3}, {2, -1, 3}, {5, 2, 1}, {7, 4, 3}}; I want to make all functions, e.g $f(x) = \dfrac{(x+4)(x+7)}{x-...
John Paul Peter's user avatar
0 votes
1 answer
125 views

TexForm for powers of PolyLog gives unexpected form [closed]

Although the current TeXForm in Mathematica is far from ideal, I wonder if there is any reason for writing power of PolyLog as ...
BabaYaga's user avatar
  • 1,888
1 vote
1 answer
83 views

Nicer display of output with TeXForm

I am summing some terms by first transforming it to TeXForm. Example: Sum[TeXForm[x^i],{i,1,50}] I want to break the line in ...
BabaYaga's user avatar
  • 1,888
4 votes
1 answer
316 views

How to make a polynomial so that f(i) = 1/(2^i)?

I know that, sequence has formula $f(n) = \dfrac{1}{2^n}$ satifying the conditions $f(1)=\dfrac{1}{2}$, $f(2)=\dfrac{1}{4}$, $f(3)=\dfrac{1}{8}$, $f(4)=\dfrac{1}{16}$. Now I am trying to find a ...
John Paul Peter's user avatar
0 votes
0 answers
56 views

How to use Format in TeXForm keeping expression as shown in Format?

I have expression expr = int[1 - x + x^2 - x^3 + x^4 - x^5, x] and I want to convert it to Latex. But want to replace int by <...
Nasser's user avatar
  • 145k
4 votes
0 answers
110 views

Is there a way to get expressions to output in terms of Log2 instead of Log? [duplicate]

I'm in computer science, pretty much every logarithm I ever encounter is base 2. Normally, Mathematica wants to convert every logarithm to the natural log Log, so ...
Pavel's user avatar
  • 183
3 votes
2 answers
213 views

Are there missing symbols in the FrontEnd's TeX input interface?

I am trying to insert an \hbar into the Front End's interface. but the hbar is missing: I've tried to use character codes and pasting the FrontEnd's [HBar] in directly. Neither work. Does anyone ...
Craig Carter's user avatar
  • 4,510
3 votes
1 answer
97 views

Print in TableForm

Hi I have this code which runs fine, however it does not print things at the end in nice TableForm. I want it to print things nicely in the form of a table with some headings. However if I use ...
Learner's user avatar
  • 219
1 vote
2 answers
201 views

Adding direction arrows to discrete plot

I wanted a discrete plot of $y = -\dfrac{3}{2} x$ and used DiscretePlot[-3/2 x, {x, -20, 20}] I do not like the vertical lines shown in the plot but I did not ...
Moo's user avatar
  • 3,334

1
2 3 4 5
29