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
0
votes
2 answers
Variable numbers becoming scientific notation
Please can someone help?
I'm parsing Facebook event data into my website and find that the event IDs are often huge numbers which creates problems in the script.
Investigating I found that the long numbers were being converted to scientific notation…

Matt Deemer
- 133
- 1
- 3
- 9
0
votes
1 answer
difference between $object->item or $object['item']
When I uses objects in webapplications, sometimes I have to use $object->item, and sometimes I have to use: $object['item'].
But what's the difference between both notations? When do I need the first notation, and when do I need the other notation?

user2753885
- 59
- 2
- 5
0
votes
0 answers
How can i find just the cidr notation from a terminal command?
I am writing a script that needs to replace the network cidr notation in the command with the one found by running a command . Is there a specific command that can tell me just the cidr notation for my network so i can then turn it into a variable…

HtmlGifited
- 1
- 6
0
votes
1 answer
Xcode - self.viewController or _viewController
I have created a UIViewController in the .h file named myViewController.
Should I refer to it in the .m file with self.myViewController or _myViewController (being autosynthesized with that name).
Is it a personal preference or is there any…

Lord Zsolt
- 6,492
- 9
- 46
- 76
0
votes
2 answers
What is this object notation format?
I'm working on manipulating data from a program, and I came across this data format, but I can't figure out how to parse…

fuxuan
- 3
- 1
0
votes
2 answers
Proper %w notation usage
What are the right situations to use %w:
percent_notation = %w(first second third)
explicit = ["first", "second", "third"]
for creation of arrays? With arrays of size 501, the difference in creation time is approx. .04 milliseconds. Is this a…

Dan Garman
- 646
- 1
- 5
- 20
0
votes
2 answers
Reverse Polish Notation
Quick question about reverse polish notation.
Why is 2*3/(2-1)+5*(4-1)?: (original)
23*21-/541-*+
rather than 23*21-/5+41-*?
I am just confusing myself. Personally I'd have adding extra brackets to the original question to make it clear where…

Emma Rouse
- 11
- 4
0
votes
3 answers
JSON dot notation to string
I am using JSON within my javascript and I am trying to get a string value for the dot notation representation.
For example AAA.BBB[0].CCC.DDD[5].EEE = 123 in JSON dot notation format.
But I want to get the value AAA.BBB[0].CCC.DDD[5].EEE as a…

judomonkeykyle
- 3
- 1
- 3
0
votes
3 answers
Specific Java Regex For Set Notation
I'm trying to write a regex expression that will check that a string is in the formation of a Set of integers
ex: {1, 23, -501, 52, 2387329, 0}
So far I've got:
Pattern p = [({(([0-9]+,)*[0-9]+)})]
But it doesn't seem to be working... Can anyone…
0
votes
1 answer
FP (function programming): notation
The language used here is FP.
I don't understand the difference between the use of <> and [].
For example:
2 : <3,4,5> -> 4
But
+ o [1,2] : <2,3> -> 5
Why is the first sequence written with [] instead of <> ?
Thanks!

Maria Ines Parnisari
- 16,584
- 9
- 85
- 130
0
votes
2 answers
Algorithm analysis (big-O) for algorithm
I'm trying to help a friend analyze the complexity of his algorithm but my understanding of Big-O notation is quite limited.
The code goes like this:
int SAMPLES = 2000;
int K_SAMPLES = 5000;
int i = 0; // initial index position
while (i <…

karlphillip
- 92,053
- 36
- 243
- 426
0
votes
1 answer
Oh-notation above cubic
I have a question about calculating time-complexity in algorithms.
Is it possible to have a notation such as O(n^4) if you have four nested for-loops?

user2052598
- 55
- 5
0
votes
1 answer
Is there a standard way to represent any API?
I want a notation which helps me visualize any API (Application Programming Interface). The best that I have found so far is the Augmented BCNF notation as mentioned in rfc 5234. Is there a standard for this ?
Thanks

sidquanto
- 315
- 3
- 6
0
votes
4 answers
Complex number notation
My DotNET application has a limited scripting language build in (modelled loosely on VBScript) mainly for post-processing numbers, points and vectors. I've just added support for complex numbers, but I'm struggling with the notation.
I don't want to…

David Rutten
- 4,716
- 6
- 43
- 72
0
votes
1 answer
Large numbers/integers in dot notation
Any handy method to have for instance the number 1000000 become 1.000.000 and 10000 become 10.000 etc? I'm dealing with integers so comma's are not a necessity to include (but would be handy though, like 10.000,53).
Thanks in advance

Flame
- 6,663
- 3
- 33
- 53