Skip to main content

Questions tagged [conversion]

Questions on changing Mathematica expressions of one type or format to another, for example date formats, Boxes and other typesetting representations, or different units of measurements.

3 votes
3 answers
62 views

Mathematica misinterprets $\LaTeX$ equation, mistakes product as function call

I am trying to import a $\LaTeX$ equation into Mathematica. I called ToExpression[expression,TeXForm], which works for the most part, but sometimes it interprets ...
Carlos Santi Toledo's user avatar
0 votes
2 answers
91 views

Is it possible to have ToString operate on an expression containing Prefix (@) ? for example exp = [email protected]

ToString[exp] results in the string form of the evaluated form of exp when exp contains Prefix (@), such as when exp is an email address. How can such an expression be converted to a string?
user96574's user avatar
6 votes
1 answer
139 views

Help in understanding the evaluation inside Plot

My colleague sent me this surprising example of code today (this is after stripping everything unrelated to the evaluation): ...
And R's user avatar
  • 544
1 vote
0 answers
59 views

A cryptic message when converting a Graph to Graphics

In Mathematica 13.3 (Windows 11) I do Graph[{1, 2}, 1 \[UndirectedEdge] 2] then right-click on the result and choose "Convert To Graphics" from the menu ...
მამუკა ჯიბლაძე's user avatar
3 votes
1 answer
196 views

Convert black and white pictures into color images

I have a digital image of an old black and white picture. Is it possible, using Mathematica, to convert this old picture into a black and white image? For example: This transformation was done using ...
Michiel van Mens's user avatar
0 votes
2 answers
104 views

Is there a way to convert a high precision value to its digits?

Is there a way to convert a number like 2.5326384172870370602159219766864657866396178797`20.124930050805514*^-12 to a high precision integer? Mathematica gives me only 20 digits with ...
levitymaster's user avatar
2 votes
1 answer
141 views

Convert R code to Mathematica code of Poisson log-likelihood for the epidemic curve

I want to define a function that simulates the model for a given combination of parameters and calculates the Poisson log-likelihood for the epidemic curve of reported cases: ...
Athanasios Paraskevopoulos's user avatar
1 vote
0 answers
71 views

Byte array to String with no internal processing, e.g. 𓃰

UTF8 defines a way to map from bytes to glyphs. In particular, glyphs with code <128 can be 1 byte, glyphs with code <2048 can be 2 bytes, etc. up to 4 bytes. For instance, the white queen <...
Adam's user avatar
  • 3,966
2 votes
2 answers
60 views

ToPolarCoordinates not working with units

I am trying to convert some quantities with units from rectangular to polar coordinates (to get the magnitude and angle). It seems that ToPolarCoordinates command does not calculate the angle when ...
user90441's user avatar
  • 129
2 votes
1 answer
87 views

Period to comma TexForm conversion

How can we instead of having a period as a decimal seperator have a comma when using a TeXForm conversion in Mathematica? Example: ...
nate's user avatar
  • 21
10 votes
1 answer
410 views

How to convert a Markdown file into a Mathematica notebook

How to convert a Markdown file (or text) into a Mathematica notebook? For example, easy conversion of comprehensive MSE posts is desirable. Possible approaches ordered according to their convenience: ...
Anton Antonov's user avatar
3 votes
1 answer
68 views

Converting ViewPoint and ViewCenter to ViewVector

In the documentation about ViewPoint in the section "Properties & Relations" we can read: "Convert ViewPoint to ViewVector by multiplying the length and pointing the center:" ...
azerbajdzan's user avatar
  • 20.1k
2 votes
0 answers
59 views

BoundaryDiscretizeGraphics for exotic unicode glyphs

This code works BoundaryDiscretizeGraphics[Text@"\[WolframLanguageLogoCircle]\[WolframLanguageLogo]", _Text] But for more exotic characters, it produces ...
Adam's user avatar
  • 3,966
9 votes
3 answers
1k views

Convert four bytes to IEEE 754 float

I have some bytes, say bytes=ByteArray@{189,178,61,188}, read from a file with Import[...,"Byte"]. The big endian ...
Adam's user avatar
  • 3,966
13 votes
1 answer
321 views

How to convert the ListVector into PackedArray in FunctionCompile

Cross post here I have a compile function cf to calculate the mean for a ragged list: ...
yode's user avatar
  • 26.9k

15 30 50 per page
1
2 3 4 5
17