Stack Exchange Network

Stack Exchange network consists of 174 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 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.

0
votes
0answers
59 views

How to extract the code from a cdf file?

I have several CDFs, and these bring interactive drawings with functions, how can I extract the code that generates them? I have tried to follow some previous answers but it does not work for me, it ...
0
votes
0answers
39 views

Convert Chinese character into a list of lines

For a puzzle I want to list pairs of Chinese cities. Once a line is drawn between each pair of cities the resulting lines will spell out a phrase in Chinese which is the answer to the puzzle. I've ...
1
vote
1answer
40 views

Convert Part of Subscript Files to Math Form

I have french subscript file here: https://uploadfiles.io/iehon If you download it an open it with Word, you can see that the math sections are but between $<i>$ and <\i>: To import the ...
4
votes
1answer
57 views

Problem using UnitConvert

As we know in physics, power = torque * (angular velocity). But when I use UnitConvert to convert a quantity expressing power/(angular velocity) into newton-meters, ...
1
vote
3answers
69 views

How to convert DateList format to standard SQL format?

I have a date in standard SQL format YYYY-MM-DD HH:MM:SS.xx, where the xx are hundredths of seconds: x = 2016-05-30 11:58:46.84 I have a file with 200,000+ ...
4
votes
4answers
143 views

How to convert a list of digits to a string in Mathematica

I want to convert a list of digits to a string, for example from {1,2,3,4,5}, I want to get the string 12345. The following will work as long as the list does not ...
4
votes
1answer
70 views

Points in CIE Lab color space

The following points are Lab values (CIELAB color space) points={{46.76, 34.51, 17.08}, {43.51, 34.83, 15.7}, {45.49, 32.92, 15.24}} what I would like to do is a) ...
2
votes
1answer
90 views

TeXForm of symbols

For reasons unknown, TeXForm seems to produce different results when acting on symbols that are one character long versus longer characters: ...
3
votes
2answers
92 views

How can I plot the price of Bitcoin since last week?

What is the best way to plot the price AND volume of Bitcoin (or any other currency) in USD for the past week/month/year? Is it a good idea to use CurrencyConvert? ...
1
vote
3answers
106 views

Multiplying quantities by scalars in Mathematica 11.3

I'm no longer able to multiply scalars by quantities in Mathematica 11.3. In previous versions the code 3*Quantity[1, "mm"] evaluated to ...
0
votes
0answers
82 views

Convert Mathematica Code to R Code

I would like to convert Mathematica code to R code. For example, 4/(-1 + δ) + (-1 + δ) Subscript[P, R] The above is a copy version from Matematica. But I would ...
2
votes
2answers
63 views

Extraction of array from NDSolve output

I have got a system of differential equations. The system has $4$ variables. I am trying to plot trajectory of a particle outside a Kerr Black Hole. I have used Mathematica to calculate all the $4$ ...
10
votes
2answers
204 views

Schrödinger's MatrixForm: feature or bug?

Recently I noticed a peculiar behavior of MatrixForm that I failed to find a way to explain. Consider the following example: ...
3
votes
1answer
114 views

The algorithm behind InputForm for machine numbers

There are several questions on this site about implementing fast CSV/TSV export for machine numbers without loss of precision. Recently I discovered that Export ...
5
votes
1answer
49 views

Convert a numerical expression to words

I would like to convert algebraic sums of the form 8+1-3 into words, obtaining "eight plus one minus three". I have tried using ...
12
votes
1answer
156 views

Safe alternatives to ToExpression

Background Conversion from string/boxes to expression is quite common. Very often the goal would be a simple switch from "1" to ...
1
vote
1answer
42 views

How to convert cdf to stl format

I have the CDF version of the file that i need to 3D print, and because it wont let me convert to an STL format the normal way, how can i convert it.Is there a format i can convert it to, then open it ...
6
votes
1answer
161 views

How to convert dayname to number?

When I input DayName[{2012,12,24}] I get Monday as output. What is the most effective way to convert Monday into 1, Tuesday into ...
1
vote
1answer
66 views

Is there a function to convert an English description to an expression?

I know I can write: SpokenString[a + b^2] And then obtain as output: "a plus b squared" What about the opposite, something ...
3
votes
1answer
41 views

Unable to convert degree to number in LatitudeLongitude and “City” Entity

I am trying to convert degree to number for some mathematical transformation. Taking London as an example, the following codes can convert the degree into a number without any problems: Codes that ...
0
votes
0answers
33 views

Using Rationalize to find the exact rational form [duplicate]

When I run Rationalize[2.98688387095, 0] I get $\frac{117300079}{39271724}$ However, when I run N[117300079/39271724, 50] ...
2
votes
1answer
83 views

ToExpression and RowBox — orderings

With: ToExpression[RowBox[{"c", ToBoxes[Plot[Sin[x], {x, -2, 2}]], "a"}]] I get the three elements of the array, but with "a" and then "c" at the beginning. I ...
2
votes
1answer
382 views

Mathematica to Matlab

my question is a duplicate of : Is it possible to export the equations from Mathematica to MATLAB? I did some symbolic calculations in Mathematica and want to transfer the result to Matlab. The ...
3
votes
1answer
311 views

How to Convert Mathematica Notebooks to PDF's?

My book is done. I'm left with twenty seven (27) Mathematica Notebooks (.nb's) How do I convert these notebooks to the pdf format? How do I combine all twenty seven (27) pdfs into a single pdf? Thanks ...
4
votes
1answer
82 views

Subtracting Missing[] the old way

In previous versions of Mathematica Missing[]- Missing[] would output Missing[]- Missing[]. In the current version is outputs 0. Is there a way to get Mathematica to revert back to the old output? ...
5
votes
1answer
178 views

How to transform general Ellipsoid into rotated axis-oriented one?

Recently, I discovered a long-standing bug in the rendering of Disk and Circle primitives after applying ...
0
votes
1answer
47 views

ToExpression Error when parsing MathML in XML

My code for parsing MathML to be readable in Mathematica: ToExpression @ ImportString @ ExportString[#, "XML"]& /@ Cases[ xml, XMLElement["math", _, _],∞ ] ...
2
votes
1answer
312 views

CMD method to convert .nb file into .m file

.nb file consists of the boxes, and the .m file is a pure text file, what can help to share on GitHub. Of course, we can open a <...
9
votes
4answers
958 views

How to convert a string having nested parentheses into an expression?

I am a Wolfram Language/Mathematica beginner and trying to convert STEP ISO10303 commands into geometrical regions. A simple command looks like ...
2
votes
2answers
140 views

Want to convert a string to a SHA512 Base64 value

I am having trouble converting this: "333" Into this: "XjFVd0052XxfnhfBCMKz4EhaQ64069GW9hpvi/cy73GknlcQWUz8c5HbEU7fmfXaPtlu8dbKXlmOhfkb1B5+6w==" It is for a web based program (I need to get a ...
1
vote
1answer
88 views

Converting LaTeX expression in Mathematica — strange result

I tried to convert a latex expression in Mathematica, but it shows me a strange result (it shows a strange word: "ghit"). ...
0
votes
0answers
47 views

Combine multiple ParametricPlot3D to export to stl file (w/o using Show[])

I have multiple ParametricPlot3D functions, that I am visualizing together using the Show[] operator. However, I cannot export this as an stl file Some of my functions: ...
6
votes
4answers
196 views

How do I convert an inexact number smaller than $MinMachineNumber to machine-precision?

I was trying to convert some arbitrary-precision numbers to machine-precision numbers using N[myNumber,MachinePrecision]. But, although my test number did lose some ...
6
votes
1answer
137 views

TagBox + InterpretationBox vs ConvertTo/StandardForm

There appears to be a problem with a menu command Convert To / StandardForm (Crtl+Shift+N) with respect to InterpretationBox ...
11
votes
1answer
151 views

TextString evaluation leak

Bug introduced in 10.4 or earlier and persisting through 11.3 [...] I checked and reproduced your issue, and have passed along a report to our developers on the same [...] CASE:3972929 ...
5
votes
1answer
121 views

How to convert a RawArray of bytes to ByteArray?

A ByteArray can be converted to a RawArray: ...
1
vote
2answers
55 views

ImageMesh precision

Browsing though the documentation of ImageMesh I found it lacking with regard to its methods and options concerning mesh generation. In my application I have an ...
6
votes
1answer
164 views

Latex expression \int_{a}^{b} x dx in Mathematica - ToExpression+TexForm error

I tried to convert a Latex expression to Mathematica in this way: ToExpression["\\int_{a}^{b}{x dx}", TeXForm] Mathematica gives me an error. How can I get the ...
6
votes
1answer
89 views

Inconsistent rounding with ToExpression

I am trying to convert a string which contains a decimal number into a number with out any lost of precision. For example the string 5000000.0000000009 should ...
4
votes
1answer
141 views

Convert a Notebook directly to a package with boiler plate

I want to be able to turn a bunch of notebooks I have into packages so I can more easily share them with others, without having to go through the boiler-plate of choosing which cells to export / doing ...
4
votes
1answer
110 views

URLRead ignores content-encoding:gzip header

Background Taking an example from Decoding GZIP encoded Body, BodyBytes (ByteArray) and BodyBytesArray from URLRead: ...
4
votes
1answer
175 views

A bug in converting some Unicode characters into FullForm?

Currently I know only one well-documented way to convert all special characters in an arbitrary string into their FullForm: In ...
3
votes
6answers
186 views

How to convert the Parallelogram into a Polygon

Suppose I have Parallelogram like Parallelogram[{1, 2}, {{3, 4}, {6, 3}}] I can convert it into a ...
3
votes
1answer
85 views

Conversion decimal point to floating point and vice versa

I would like to know if there is any way to convert decimal numbers to floating point, using the IEEE-754 standard, specifying whether it is simple or double. And vice versa, floating point to decimal ...
7
votes
3answers
306 views

How to convert input expression to FullForm String

Is there a way to convert an input expression to FullForm String? Here is my attempt, which is almost there. ...
4
votes
5answers
809 views

How to convert string to real numbers when there are many spaces in them?

I have generated a string list " 1 1 3212 8.0000 75 61 1 74 3 58 0.0000" I want to convert them into real numbers however, when ...
0
votes
0answers
24 views

Function seems to be evaluating before giving it a value [duplicate]

I'm trying to take a list of coordinates and convert the right ascensions and declinations from h min s / deg arcmin arcsec to degrees. This is my list of coordinates ...
3
votes
1answer
90 views

MakeExpression can't deal with FE boxes riffled with whitespaces

Bug introduced in 10.4 or earlier and persisting through 11.3 CASE:3910218 When you input { 1 , 2 } (*spaces intended, retype them if you want to copy this*) ...
6
votes
3answers
340 views

Characters to numbers

I have an string "000101". I know that Characters change it to {"0","0","0","1","0","1"}. ...
4
votes
1answer
1k views

Convert radian to degree and add °

How can I convert a radian angle to a degree one and add ° after it? I am using N[(Pi/4)/Degree], but the output is 45. with ...