Funzioni di Gnumeric - Logiche

Luca Ferretti elle.uca@infinito.it
Dom 17 Ott 2004 12:52:45 CEST


Per le regole da rispettare cfr. l'email precedence.

Per quanto riguarda queste funzioni posso dirvi che
      * sì, lo XOR opera come descritto, perché definito come operatore
        n-ario
      * sì, sembrano un po' incasinate, facendo confusione tra valori
        booleani e valori numerici (cfr IF). Avrebbero bisogno di
        descrizioni più accurate, se qualcuno volesse dare suggerimenti
        in tal senso magari posso poi preparare una patch ed inviarla[1]

---------------------

#: plugins/fn-logical/functions.c:44
msgid ""
"@FUNCTION=AND\n"
"@SYNTAX=AND(b1, b2, ...)\n"
"@DESCRIPTION=AND implements the logical AND function: the result is
TRUE if "
"all of the expressions evaluate to TRUE, otherwise it returns FALSE.\n"
"\n"
"@b1 trough @bN are expressions that should evaluate to TRUE or FALSE. 
If an "
"integer or floating point value is provided, zero is considered FALSE
and "
"anything else is TRUE.\n"
"\n"
"* If the values contain strings or empty cells those values are
ignored.\n"
"* If no logical values are provided, then the error #VALUE! is
returned.\n"
"* This function is Excel compatible.\n"
"\n"
"@EXAMPLES=\n"
"AND(TRUE,TRUE) equals TRUE.\n"
"AND(TRUE,FALSE) equals FALSE.\n"
"\n"
"Let us assume that A1 holds number five and A2 number one.  Then\n"
"AND(A1>3,A2<2) equals TRUE.\n"
"\n"
"@SEEALSO=OR, NOT"
msgstr ""
"@FUNCTION=AND\n"
"@SYNTAX=ANB(b1; b2; ...)\n"
"@DESCRIPTION=La funzione AND implementa l'AND logico. Il risultato è
VERO se "
"tutte le espressioni valutate sono VERO, altrimenti restituisce
FALSO.\n"
"\n"
"@b1 ... @bN sono espressioni che dovrebbero valere VERO o FALSO. Se è "
"fornito un valore intero o floating point, lo zero viene considerato
FALSO "
"ed ogni altro valore VERO.\n"
"\n"
"* Se i valori contengono stringhe o celle vuote, tali valori sono
ignorati.\n"
"* Se non è fornito alcun valore logico, allora viene restituito
l'errore "
"#VALORE!.\n"
"* Questa funzione è compatibile con Excel.\n"
"\n"
"@EXAMPLES=\n"
"AND(VERO; VERO) restituisce VERO.\n"
"AND(VERO; FALSO) restituisce FALSO.\n"
"\n"
"Assumendo che A1 contiene il numero 5 ed A2 il numero 1, allora\n"
"AND(A1>3; A2<2) restituisce VERO.\n"
"\n"
"@SEEALSO=OR, NOT"

#: plugins/fn-logical/functions.c:106
msgid ""
"@FUNCTION=NOT\n"
"@SYNTAX=NOT(number)\n"
"@DESCRIPTION=NOT implements the logical NOT function: the result is
TRUE if "
"the @number is zero;  otherwise the result is FALSE.\n"
"\n"
"* This function is Excel compatible.\n"
"\n"
"@EXAMPLES=\n"
"NOT(0) equals TRUE.\n"
"NOT(TRUE) equals FALSE.\n"
"\n"
"@SEEALSO=AND, OR"
msgstr ""
"@FUNCTION=NOT\n"
"@SYNTAX=NOT(numero)\n"
"@DESCRIPTION=La funzione NOT implementa la negazione logica. Il
risultato è "
"VERO se @numero è zero, altrimenti il risultato è FALSO.\n"
"\n"
"* Questa funzione è compatibile con Excel.\n"
"\n"
"@EXAMPLES=\n"
"NOT(0) restituisce VERO.\n"
"NOT(VERO) restituisce FALSO.\n"
"\n"
"@SEEALSO=AND, OR"

#: plugins/fn-logical/functions.c:127
msgid "Type Mismatch"
msgstr "Differenza di tipo"

#: plugins/fn-logical/functions.c:134
msgid ""
"@FUNCTION=OR\n"
"@SYNTAX=OR(b1, b2, ...)\n"
"@DESCRIPTION=OR implements the logical OR function: the result is TRUE
if "
"any of the values evaluated to TRUE.\n"
"\n"
"@b1 trough @bN are expressions that should evaluate to TRUE or FALSE.
If an "
"integer or floating point value is provided, zero is considered FALSE
and "
"anything else is TRUE.\n"
"\n"
"* If the values contain strings or empty cells those values are
ignored.\n"
"* If no logical values are provided, then the error #VALUE! is
returned.\n"
"* This function is Excel compatible.\n"
"\n"
"@EXAMPLES=\n"
"OR(TRUE,FALSE) equals TRUE.\n"
"OR(3>4,4<3) equals FALSE.\n"
"\n"
"@SEEALSO=AND, NOT"
msgstr ""
"@FUNCTION=OR\n"
"@SYNTAX=OR(b1; b2; ...)\n"
"@DESCRIPTION=La funzione OR implementa l'OR logico. Il risultato è VERO
se "
"qualcuno dei valori è VERO.\n"
"\n"
"@b1 ... @bN sono espressioni che dovrebbero valere VERO o FALSO. Se è "
"fornito un valore intero o floating point, lo zero viene considerato
FALSO "
"ed ogni altro valore VERO.\n"
"\n"
"* Se i valori contengono stringhe o celle vuote, tali valori sono
ignorati.\n"
"* Se non è fornito alcun valore logico, allora viene restituito
l'errore "
"#VALORE!.\n"
"* Questa funzione è compatibile con Excel.\n"
"\n"
"@EXAMPLES=\n"
"OR(VERO; FALSO) restituisce VERO.\n"
"OR(3>4; 4<3) restituisce FALSO.\n"
"\n"
"@SEEALSO=AND, NOT"

#: plugins/fn-logical/functions.c:193
msgid ""
"@FUNCTION=XOR\n"
"@SYNTAX=XOR(b1, b2, ...)\n"
"@DESCRIPTION=XOR implements the logical exclusive OR function: the
result is "
"TRUE if an odd number of the values evaluated to TRUE.\n"
"\n"
"@b1 trough @bN are expressions that should evaluate to TRUE or FALSE.
If an "
"integer or floating point value is provided, zero is considered FALSE
and "
"anything else is TRUE.\n"
"\n"
"* If the values contain strings or empty cells those values are
ignored.\n"
"* If no logical values are provided, then the error #VALUE! is
returned.\n"
"@EXAMPLES=\n"
"XOR(TRUE,FALSE) equals TRUE.\n"
"XOR(3>4,4<3) equals FALSE.\n"
"\n"
"@SEEALSO=OR, AND, NOT"
msgstr ""
"@FUNCTION=XOR\n"
"@SYNTAX=XOR(b1; b2; ...)\n"
"@DESCRIPTION=La funzione XOR implementa l'OR logico esclusivo. Il
risultato "
"è VERO se un numero dispari di valori è VERO.\n"
"\n"
"@b1 ... @bN sono espressioni che dovrebbero valere VERO o FALSO. Se è "
"fornito un valore intero o floating point, lo zero viene considerato
FALSO "
"ed ogni altro valore VERO.\n"
"\n"
"* Se i valori contengono stringhe o celle vuote, tali valori sono
ignorati.\n"
"* Se non è fornito alcun valore logico, allora viene restituito
l'errore "
"#VALORE!.\n"
"\n"
"@EXAMPLES=\n"
"XOR(VERO; FALSO) restituisce VERO.\n"
"XOR(3>4; 4<3) restituisce VERO.\n"
"\n"
"@SEEALSO=OR, AND, NOT"

#: plugins/fn-logical/functions.c:250
msgid ""
"@FUNCTION=IF\n"
"@SYNTAX=IF(condition[,if-true,if-false])\n"
"@DESCRIPTION=IF function can be used to evaluate conditionally other "
"expressions. IF evaluates @condition.  If @condition returns a non-zero
"
"value the result of the IF expression is the @if-true expression,
otherwise "
"IF evaluates to the value of @if-false.\n"
"\n"
"* If omitted @if-true defaults to TRUE and @if-false to FALSE.\n"
"* This function is Excel compatible.\n"
"\n"
"@EXAMPLES=\n"
"IF(FALSE,TRUE,FALSE) equals FALSE.\n"
"\n"
"@SEEALSO="
msgstr ""
"@FUNCTION=IF\n"
"@SYNTAX=IF(condizione[; se-vero; se-falso])\n"
"@DESCRIPTION=La funzione IF può essere usate per valutare in modo "
"condizionale altre espressioni. IF valuta @condizione. Se @condizione "
"restituisce un valore diverso da zero, allora il risultato
dell'espressione "
"IF è l'espressione @se-vero, altrimenti IF valuta il valore di
@se-falso.\n"
"\n"
"* Se omessi, in modo predefinito @se-vero vale VERO e @se-falso vale
FALSO\n"
"* Questa funzione è compatibile con Excel.\n"
"\n"
"@EXAMPLES=\n"
"IF(FALSO; VERO; FALSO) restituisce FALSO.\n"
"\n"
"@SEEALSO="

#: plugins/fn-logical/functions.c:290
msgid ""
"@FUNCTION=TRUE\n"
"@SYNTAX=TRUE()\n"
"@DESCRIPTION=TRUE returns boolean value true.\n"
"\n"
"* This function is Excel compatible.\n"
"\n"
"@EXAMPLES=\n"
"TRUE() equals TRUE.\n"
"\n"
"@SEEALSO=FALSE"
msgstr ""
"@FUNCTION=TRUE\n"
"@SYNTAX=TRUE()\n"
"@DESCRIPTION=La funzione TRUE restituisce il valore booleano VERO.\n"
"\n"
"* Questa funzione è compatibile con Excel.\n"
"\n"
"@EXAMPLES=\n"
"TRUE() restituisce VERO.\n"
"\n"
"@SEEALSO=FALSO"

#: plugins/fn-logical/functions.c:312
msgid ""
"@FUNCTION=FALSE\n"
"@SYNTAX=FALSE()\n"
"@DESCRIPTION=FALSE returns boolean value false.\n"
"\n"
"* This function is Excel compatible.\n"
"\n"
"@EXAMPLES=\n"
"FALSE() equals FALSE.\n"
"\n"
"@SEEALSO=TRUE"
msgstr ""
"@FUNCTION=FALSE\n"
"@SYNTAX=FALSE()\n"
"@DESCRIPTION=La funzione FALSE restituisce il valore booleano FALSO\n"
"\n"
"* Questa funzione è compatibile con Excel.\n"
"\n"
"@EXAMPLES=\n"
"FALSE() restituisce FALSO.\n"
"\n"
"@SEEALSO="

#: plugins/fn-logical/functions.c:334 plugins/fn-logical/functions.c:338
#: plugins/fn-logical/functions.c:358 plugins/fn-math/functions.c:3317
#: plugins/fn-stat/functions.c:5613 plugins/fn-stat/functions.c:5617
#: plugins/fn-stat/functions.c:5621 plugins/fn-stat/functions.c:5659
#: plugins/fn-stat/functions.c:5662 plugins/fn-stat/functions.c:5671
#: plugins/fn-stat/functions.c:5707 plugins/fn-stat/functions.c:5721
#: plugins/fn-stat/functions.c:5724 plugins/fn-stat/functions.c:5727
#: plugins/fn-stat/functions.c:5749 plugins/fn-stat/functions.c:5753
#: plugins/fn-stat/functions.c:5757 plugins/fn-stat/functions.c:5761
#: plugins/fn-stat/functions.c:5765 plugins/fn-stat/functions.c:5769
#: plugins/fn-stat/functions.c:5815 plugins/fn-stat/functions.c:5825
#: plugins/fn-stat/functions.c:5829 plugins/fn-stat/functions.c:5833
#: plugins/fn-stat/functions.c:5837 plugins/fn-stat/functions.c:5866
#: plugins/fn-stat/functions.c:5869 plugins/fn-stat/functions.c:5872
#: plugins/fn-stat/functions.c:5875 plugins/fn-stat/functions.c:5891
#: src/func-builtin.c:131 src/func-builtin.c:137
msgid "number,number,"
msgstr "numero; numero;"

#. MS Excel puts this in the engineering functions
#: plugins/fn-logical/functions.c:342 plugins/fn-math/functions.c:3149
#: plugins/fn-math/functions.c:3153 plugins/fn-math/functions.c:3156
#: plugins/fn-math/functions.c:3159 plugins/fn-math/functions.c:3162
#: plugins/fn-math/functions.c:3165 plugins/fn-math/functions.c:3168
#: plugins/fn-math/functions.c:3174 plugins/fn-math/functions.c:3183
#: plugins/fn-math/functions.c:3192 plugins/fn-math/functions.c:3200
#: plugins/fn-math/functions.c:3203 plugins/fn-math/functions.c:3206
#: plugins/fn-math/functions.c:3209 plugins/fn-math/functions.c:3212
#: plugins/fn-math/functions.c:3217 plugins/fn-math/functions.c:3221
#: plugins/fn-math/functions.c:3227 plugins/fn-math/functions.c:3237
#: plugins/fn-math/functions.c:3244 plugins/fn-math/functions.c:3247
#: plugins/fn-math/functions.c:3253 plugins/fn-math/functions.c:3256
#: plugins/fn-math/functions.c:3269 plugins/fn-math/functions.c:3275
#: plugins/fn-math/functions.c:3281 plugins/fn-math/functions.c:3302
#: plugins/fn-math/functions.c:3305 plugins/fn-math/functions.c:3308
#: plugins/fn-math/functions.c:3311 plugins/fn-math/functions.c:3314
#: plugins/fn-math/functions.c:3327 plugins/fn-math/functions.c:3339
#: plugins/fn-math/functions.c:3342 plugins/fn-stat/functions.c:5683
#: plugins/fn-stat/functions.c:5686 plugins/fn-stat/functions.c:5704
#: plugins/fn-stat/functions.c:5782 plugins/fn-string/functions.c:1119
#: plugins/fn-string/functions.c:1122
msgid "number"
msgstr "numero"

#: plugins/fn-logical/functions.c:346
msgid "condition,if true,if false"
msgstr "condizione;se vero;se falso"

#: plugins/fn-logical/plugin.xml.in.h:1
msgid "Functions for manipulating truth values"
msgstr "Funzioni per manipolare valori di verità"

#: plugins/fn-logical/plugin.xml.in.h:2
msgid "Logic"
msgstr "Logiche"

#: plugins/fn-logical/plugin.xml.in.h:3
msgid "Logic Functions"
msgstr "Funzioni logiche"


[1] Ad esempio credo che sarebbe opportuno far iniziare ciascuna
descrizione con

        La funzione XOR implementa l'operatore logico xor, detto anche
        disgiunzione esclusiva, per il quale date due proposizioni, la
        digiunzione esclusiva di queste è vera solo se una e solo una
        delle due proposizioni è vera, in caso contrario la .
        
        La funzione AND può operare su un numero N arbitrario di
        proposizioni contemporanemente, In tal caso in funzione della
        proprietà associativa dell'operatore la congiunzione di N. Il
        risultato è quindi VERO se un numero dispari di proposizioni è
        vero.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Questa parte del messaggio =?ISO-8859-1?Q?è?Url : http://lists.linux.it/pipermail/tp/attachments/20041017/92a60d38/attachment.pgp


Maggiori informazioni sulla lista tp