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
Simplify scientific number format and change formatting
Is there a tricky way to print in a "round" way the scientific numbers such as:
2.9560343062229E-10
let be converted to 2.95^10. Also, how to split the exponent in order to print 2.95-10 in HTML notation?

Mauro
- 361
- 1
- 4
- 14
0
votes
2 answers
Does angularjs automatically create nested structures?
a bit confused about how to create and reference items in a nested array using angular.js. I was thinking that I could do:
$scope.zones = [ {z:'north'}, {z:'south'} ];
$scope.zones.times = [ {t:'noon'}, {t:'midnight'} ];
$scope.zones.times.places =…

braddo
- 103
- 1
- 1
- 6
0
votes
1 answer
Python: "@" followed by a function -> What does it stand for?
I'm currently learning Python and I came across a notation I was wondering about:
import taskmanager as tm
#........
@tm.task(str)
def feat(folder):
BLA BLA BLA ...
the code is a small excerpt from…

tim
- 9,896
- 20
- 81
- 137
0
votes
0 answers
JS: How to convert 2345 in to 2.345,00?
how do i convert 2345 in to 2.345,00 the right way?
converting 2345 in to 2345.00 is easy as:
var new = parseFloat('2345').toFixed(2);
Have i to work with substrings or are there functions for formating floats in to UK notation?

Viktor
- 623
- 4
- 10
- 25
0
votes
1 answer
Does array notation in Cilk run in parallel?
ie. for
int A[100]
A[:] = 1;
does that try to create a 100 threads? or is it the same as doing a for loop?
I thought it was parallelized but I just tested it and it doesn't look like it.
Is there a way to make it use multiple threads or is Array…

d0m1n1c
- 157
- 4
- 16
0
votes
1 answer
PHP object property notation
I suddenly stuck here:
$source = (object) array(
'field_phone' => array(
'und' => array(
'0' => array(
'value' => '000-555-55-55',
),
),
),
);
dsm($source);
…

Dmytro Sukhovoy
- 952
- 5
- 17
0
votes
1 answer
Is it possible to parse/read javascript - like notation - Objective-C
I have a file that tells me what to do on runtime.
Notation is as below;
Is it possible to parse it with standard rules, without writing custom…

erdemgc
- 11
- 6
0
votes
1 answer
Coq - IP Notation
Coq - IP Notation
I want to create a notation for ip addresses. The following is my notation definition that works fine:
Inductive IP := ip : nat -> nat -> nat -> nat -> IP.
Notation "a . b . c . d" := (ip a b c d) (at level 100).
But when I try to…

Konstantin Weitz
- 6,180
- 8
- 26
- 43
0
votes
1 answer
Finding Big Theta
I am in a Data Structures and Algorithms class. I am trying to indicate if f(n) is Big Theta of g(n). I will also have to indicate Big O, small o, etc... but I am lost about the way to approach this particular pair.
f(n) = log* (log n)
g(n) = log(…

user3339453
- 57
- 1
- 7
0
votes
2 answers
C++ Mean and Median Absolute Deviation Returning Same Weird Notation
I am working on two functions to calculate the mean absolute deviation and median absolute deviation of a vector data set. I am using an overloaded calcAverage function inside of them. The problem is, I am returning the same incorrect value for both…

RackAttack
- 121
- 3
0
votes
2 answers
Trouble understanding little-o notation example
I'm having trouble with this one problem
9n <= cn^3
basically I can get down to
9/c <= n^2
But how do I solve the rest?

Frightlin
- 161
- 1
- 2
- 14
0
votes
1 answer
Pointer Notation and Array
(C++) My program should be getting the user to input numbers which will determine the size of the array and as well as what its elements are. I then need to sort out the elements in an ascending order. My problem is whenever I run my program and it…

user3164168
- 11
- 1
- 2
0
votes
1 answer
How to access object property beginning with a number (SyntaxError: Unexpected identifier)
I have an object within another object, which im trying to get the value but it always returns "unexpected identifier".
snow: Object {3h: 1.3}
console.log(data.snow.3h) //returns Uncaught SyntaxError: Unexpected identifier
console.log(data.snow)…

Lulli240
- 3
- 1
0
votes
2 answers
Jquery Notation Can't success to Event Click
I m workin on a notation per Stars :
-
Titus
- 55
- 2
- 13
0
votes
1 answer
Big O Notation for the Runtime fo Reversing a Linked List Recursively in Python
Using an ADT Linked List and the following code, how would I express the runtime in Big O Notation?:
def reverse (self):
(1)if self._head is not None:
(2)temp = self._head.item
(3)self._head = self._head.next
(4)self.reverse()
…

Ryan Nemec
- 1
- 1
- 2