Linked Questions

3 votes
2 answers
4k views

Faster way to convert real strings into numbers [duplicate]

Working with big files, I have to convert some numbers that are in string format into real MMA numbers. I know that I can use ToExpression but it's slow when ...
Murta's user avatar
  • 26.4k
0 votes
1 answer
1k views

Converting strings of the form "1.34e5" to real numbers? [duplicate]

ToExpresssion doesn't understand real numbers of the form "1.34e5". How do I convert the string ...
a06e's user avatar
  • 11.5k
2 votes
1 answer
673 views

Convert matrix of strings to matrix of numbers [duplicate]

I have 101 files each with a lot of data. from C output. (.out files) I have imported them to Mathematica 9. However, Mathematica reads the data from each file as an element of a table. So I used ...
HuShu's user avatar
  • 439
1 vote
0 answers
216 views

ReadList with type Expression unable to read scientific notation? [duplicate]

I have a file that defines an array of numbers like this: freq["AQs"] = 8.846947803007962E-4 ... I am reading the file with ...
dabd's user avatar
  • 839
0 votes
0 answers
22 views

How to get back from CForm to ScientificForm? [duplicate]

Consider a number number = 2.*10^20 It is in the representation of ScientificForm. I convert it to C-form: ...
John Taylor's user avatar
  • 5,963
604 votes
19 answers
158k views

Where can I find examples of good Mathematica programming practice?

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
215 votes
26 answers
18k views

What are some useful, undocumented Mathematica functions?

There have already been some questions about some undocumented functionality in Mathematica. Such as (please add to these lists!) How can one find undocumented options or option values in Mathematica?...
169 votes
6 answers
8k views

How can one find undocumented options or option values in Mathematica?

Mathematica has a lot of undocumented or poorly documented options. How does one go about working out if there is an undocumented option that might solve a particular problem? How does one work out ...
17 votes
9 answers
17k views

How do I extract a number from a string?

I want to extract the number from an alphanumeric string. This is what I tried: StringTake["thiru3", {6, 6}] The result I got is ...
thirupathi's user avatar
14 votes
6 answers
19k views

Convert a string into a list of numbers

I got the following problem I don't know how to solve or if it's at all possible to solve(I'm quite new to Mathematica and don't have an IT background, so please explain slowly if possible:)) I'm ...
Phily's user avatar
  • 181
10 votes
4 answers
5k views

Import values from tab separated file, change decimal point?

I have files that look like this: ...
C. E.'s user avatar
  • 71.2k
14 votes
3 answers
6k views

Reading in scientific notation from C++ to Mathematica

With a text file with entries formatted as (output from C++): f[38.67] = -2.5387862698183892298317350539374412777263289550697e-05; ⋮ Is there a way to read this ...
fpghost's user avatar
  • 2,145
21 votes
1 answer
1k views

Is Internal`StringToDouble broken in 12.3?

I believe Internal`StringToDouble was the only way to fast convert string into numbers. Now in V12.3 it was removed: Internal`StringToDouble["1"] ...
Murta's user avatar
  • 26.4k
13 votes
2 answers
1k views

Parsing a CSV file using Interpreter

The new Interpreter functionality in version 10 looks like it has the potential to make parsing custom data formats very easy. I'm trying to create a CSV parser. ...
Szabolcs's user avatar
  • 236k
4 votes
3 answers
391 views

Plotting data with exponentials

I have some data with 19000 sublists such as : {" 7.9080000e+01 1.9283193e+04"} Where the first number is the value for variable ...
500's user avatar
  • 5,609

15 30 50 per page