Skip to main content

Questions tagged [faq]

Frequently Asked Question – a tag for original questions which have a multitude of duplicates

11 votes
3 answers
1k views

As the title asks, why does b = a; f[a_] := b; f[2] evaluate to a rather than 2?
xzczd's user avatar
  • 71.6k
10 votes
3 answers
2k views

I am trying to implement the code which generates some table, works with it, extracts some numbers, add them to some other table, then clears the table (only the table and not the other elements of ...
John Taylor's user avatar
  • 6,063
5 votes
1 answer
239 views

A very basic question.. Why does Block work, but not With, to specify value of a parameter for a function to be plotted? ...
murray's user avatar
  • 12.2k
4 votes
1 answer
266 views

The following code g1 = Graphics[{Thickness[0.01], Line[{{0, 0}, {10, 10}}], Disk[{5, 3}, Scaled[0.1]]}, Frame -> True] produces the following output I then ...
AnInquiringMind's user avatar
7 votes
2 answers
896 views

I am testing the first tip of this article Use floating-point numbers if you can, and use them early. I've compared a pair codes and finding it's not helpful to use the float-point number during ...
cj9435042's user avatar
  • 683
4 votes
3 answers
239 views

Let's say I have a list of replacement rules: List1 = {2 -> 3, b -> 5.5, 6.57 -> 2, 3 -> 4.5, 1 -> -1, 0.03 -> 0.5, 9 -> a} The desired ...
am111's user avatar
  • 43
7 votes
2 answers
501 views

If I have a grid of values that doesn't divide evenly, for example a list of 17 values, and split it into a 7x3 grid, then draw frames around each element: ...
numbermaniac's user avatar
120 votes
4 answers
31k views

Some people advise against the use of For loops in Mathematica. Why? Should I heed this advice? What is wrong with For? What ...
Szabolcs's user avatar
  • 239k
13 votes
4 answers
3k views

I'm trying to search for an answer to "What is the complete list of single capital letters that represent built-in Mathematica commands, symbols, or uses?" For example: C, D, E, I, N, O Is this the ...
David's user avatar
  • 15.1k
10 votes
1 answer
856 views

I'm writing my package (.m) in Mathematica and when I call the function it returns 0 instead of a right output. Here's my code: Package.m ...
Motosega's user avatar
  • 121
2 votes
1 answer
2k views

Consider: Can someone explain why the 0, True occurs? As a second question, I like to fill the endpoints as follows: ...
David's user avatar
  • 15.1k
33 votes
1 answer
40k views

In Wolfram Mathematica the function Fourier has the following declaration Fourier[list] And after a list is given to the ...
user253956's user avatar
52 votes
3 answers
6k views

I am trying to change the value of one key in an association based on the value of another key in that association. So if my association starts as: ...
Jon F.'s user avatar
  • 645
9 votes
2 answers
3k views

Toady,I have a problem about N,described as below: For example N[1/3, 5] (* ==> 0.33333*) and ...
xyz's user avatar
  • 685
8 votes
4 answers
1k views

This is strongly related to the following Questions: Looking for a way to insert multiple elements into multiple positions simultaneously in a list Building matrices by attaching vectors (columns) and ...
Pam's user avatar
  • 1,877

15 30 50 per page
1
2 3 4 5