Notation refers to a specific way of writing various concepts, functions, etc. Usually it is introduced to abbreviate complicated expressions and make common idioms more readable.
Questions tagged [notation]
633 questions
8
votes
2 answers
When/where the arrow notation "->" should be used in Objective-C?
I've just got the clear explanation of what "->" notation is about here: Dot (".") operator and arrow ("->") operator use in C vs. Objective-C
But I still don't understand what are really the use cases of this notation in Objective-C?
Here is the…

Stanislav Pankevich
- 11,044
- 8
- 69
- 129
8
votes
3 answers
convert scientific notation to decimal in bash
I would like to convert a number that is stored in scientific notation into a floating point decimal, so I can then perform some comparisons on the data. This is being done in a bash script - here is a small snippet of the code:
while read track_id…

kimmyjo221
- 685
- 4
- 10
- 17
7
votes
5 answers
Notation for logic in Java
Absolutely basic Java question which I'm having a hard time finding on Google. What does the following mean:
(7 & 8) == 0?
Is that equivalent to writing:
7 == 0 || 8 == 0?
I wrote a quick main which tests this, and it seems to be the case. I just…

Sal
- 3,179
- 7
- 31
- 41
7
votes
2 answers
Representing the strings we use in programming in math notation
Now I'm a programmer who's recently discovered how bad he is when it comes to mathematics and decided to focus a bit on it from that point forward, so I apologize if my question insults your intelligence.
In mathematics, is there the concept of…

Andreas Grech
- 105,982
- 98
- 297
- 360
7
votes
3 answers
Big-O What are the constants k and n0 in the formal definition of the order of an algorithm?
In my textbook I see the following:
Definition of the order of an algorithm
Algorithm A is order f(n) -- denoted O(f(n)) -- if constants k and n0 exist such that A requires no more than k * f(n) time units to solve a problem of size n >= n0.
I…

Estex
- 93
- 1
- 7
7
votes
2 answers
Swift documentation: instance/type property/method notation
To document Ruby, I'd write, eg, Time::now or Time#day. How do I document Swift?
That is, when documenting Swift, what is the notation for a type and its 1) type property or method or 2) instance property or method?
For example, in Ruby…

ma11hew28
- 121,420
- 116
- 450
- 651
7
votes
3 answers
Why is reverse DNS notation used for package naming?
There is a technical reason for using the reverse DNS package notation? Or is it just a convention?

SimoV8
- 1,382
- 1
- 18
- 32
7
votes
1 answer
What do the absolute value bars mean in graph theory?
Just wanted to know, for example in the wikipedia page Dijkstra's algorithm what the absolute value bars meant in O(|E| + |V|log|V|)

William Rookwood
- 297
- 3
- 15
7
votes
2 answers
Probability notation
I want to ask you about the notation in probability.
I know that
P(A | B) = the conditional probability that event A occurs given that
event B has occurred already
But I cannot find what A,B or in my case P(A|B,C). I suggest it means "the…

user1328370
- 401
- 1
- 3
- 6
7
votes
4 answers
Mathematical notation in algorithms
I am currently reading the Algorithm Design Manual, but my mathematical notation has become a little rusty.
What does
mean?

DanDan
- 10,462
- 8
- 53
- 69
7
votes
5 answers
A productive alternative to UML
I find UML hard to create quickly.
I'd like to put my ideas more quickly, especially for small open sourced projects.
If it was big enough I'd bother with UML but the project is too small for this kind of thing.
I don't want yet another tool that…

the_drow
- 18,571
- 25
- 126
- 193
6
votes
5 answers
What are the distinctions between the various symbols (*,&, etc) combined with parameters?
Possible Duplicate:
c++ * vs & in function declaration
I know that this probably seems like an incredibly elementary question to many of you, but I have genuinely had an impossible time finding a good, thorough explanation, despite all my best…

burfl
- 2,138
- 2
- 20
- 18
6
votes
5 answers
How can I convert an integer to A1 notation?
I am trying to create a method that will find the next column after a given column. For example:
input: A
output: B
It seems quite simple at first. I was just going to use the following method:
public static char nextLetter(char c) {
c++;
…

Cardinal System
- 2,749
- 3
- 21
- 42
6
votes
3 answers
Mathematica Notation and syntax mods
I am experimenting with syntax mods in Mathematica, using the Notation package.
I am not interested in mathematical notation for a specific field, but general purpose syntax modifications and extensions, especially notations that reduce the…

Mr.Wizard
- 24,179
- 5
- 44
- 125
6
votes
4 answers
Could python have suffix-based number notation for engineering purposes?
As an electrical engineer I (we?) use python for helping out with calculation/automation/etc.
When dealing with calculations using some real-world numbers it is VERY common to think in -nano, -pico, -tera, etc. way.
For example: I know what a 1pF…

ronszon
- 2,997
- 4
- 19
- 16