Differenze tra le versioni di "Vista CAS"

Da GeoGebra Manual.
Riga 1: Riga 1:
 
<noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>  
 
<noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>  
 
{{gui|view|Vista CAS}}
 
{{gui|view|Vista CAS}}
 +
 +
=[[File:Menu_view_cas.svg|link=|24px]] Interfaccia utente della vista CAS=
 +
La [[File:Menu_view_cas.svg|link=|16px]] ''vista CAS'' si apre per impostazione predefinita accanto alla [[File:Menu_view_graphics.svg|link=Vista Grafici|16px]] ''[[vista Grafici]]''. Secondo quale di queste viste è attiva, nella parte alta della finestra di GeoGebra sarà visualizzata la [[Strumenti CAS|''barra degli strumenti della vista CAS'']] oppure la [[Strumenti Grafici|''barra degli strumenti della vista Grafici'']], con i pulsanti ''Annulla / Ripristina'' nell'angolo in alto a destra.
 +
{| cellpadding ="10"
 +
|[[File:CAS-View.png|left|link=|x220px]]
 +
<br>Vista CAS
 +
|}
 +
La [[File:Menu_view_cas.svg|link=|16px]] ''vista CAS'' fa parte della [[Raccolta viste#Raccolta viste CAS|''Raccolta viste CAS'']]: è comunque possibile [[GeoGebra_5.0_Desktop_vs._Web_and_Tablet_App#Customizing_the_Layout_of_the_User_Interface|modificare il layout]] dell'interfaccia utente di GeoGebra secondo le proprie necessità.
 +
 +
=Creating Mathematical Objects=
 +
==Direct Input==
 +
The ''CAS View'' allows you to use GeoGebra's CAS (Computer Algebra System) for symbolic computations. It consists of cells with an ''Input Field'' at the top and output display at the bottom. You can use these ''Input Fields'' in the same way as the normal ''[[Input Bar]]'', with the following differences:
 +
* You can use variables that were not assigned any value. {{Example|1=Enter <code>(a+b)^2</code> into an ''Input Field'' and hit the {{KeyCode|Enter}} key. You will get the output ''a²+2ab+b²''.}}
 +
* <code>=</code> is used for equations and <code>:=</code> for assignments. This means that the input <code>a=2</code> will not assign value 2 to ''a''. See the [[#Variable Assignments and Connection with other Views|section about assignments]] for details.
 +
* Multiplication needs to be marked explicitly. While in the ''[[Input Bar]]'' you can use both <code>a(b+c)</code> and <code>a*(b+c)</code> for multiplication, in the [[File:Menu_view_cas.svg|link=|16px]] ''CAS View'' only <code>a*(b+c)</code> is valid.
 +
 +
==Keyboard Shortcuts for Direct Input==
 +
In the [[File:Menu_view_cas.svg|link=|16px]] ''CAS View'' the following keyboard shortcuts help you to evaluate or check your input.
 +
{{note|Instead of using these keyboard shortcuts, you may also use the corresponding [[CAS Tools|''Tools'']] of the [[#CAS View Toolbar|''CAS View Toolbar'']].}}
 +
* {{KeyCode|Enter}}: Evaluates you input
 +
* {{KeyCode|Ctrl+Enter}}: Evaluates your input numerically {{Example|1=<code>sqrt(2)</code> yields ''1.41''}}
 +
* {{KeyCode|Alt+Enter}}: Checks your input but does not evaluate it. {{Example|1=<code>b + b</code> stays as ''b + b''.}}{{note|Assignments are always evaluated, e.g. <code>a := 5</code>}}
 +
<br>
 +
In the [[File:Menu_view_cas.svg|link=|16px]] ''CAS View'' the following keyboard shortcuts help you to reuse previous input or output in a new row if you enter them into an empty ''Input Field'':
 +
*  {{KeyCode|Space}} bar: Inserts the previous output into the new row.
 +
*  <code>)</code>: Inserts the previous output in parentheses.
 +
*  <code>=</code>: Inserts the previous input into the new row.
 +
 +
{{note|You may suppress any output with a semicolon at the end of your input, e.g. <code>a := 5;</code>.}}
 +
 +
==Variable Assignments and Connection with other Views==
 +
You may use the <code>:=</code> notation for assignments, e.g. <code>b := 5</code>, <code>a(n) := 2n + 3</code>.
 +
* ''Free up a name'': Use <code>Delete[b]</code> in order to free up a variable name again.
 +
* ''Redefine a variable or function'': You may redefine a variable or function, but you must do so '''in the same cell''', otherwise it will be treated as a new variable and automatically renamed.
 +
 +
Variables and functions are always shared between the ''CAS View'' and the other ''Views'' if possible. For example:
 +
*If you define <code>b:=5</code> in the ''CAS View'', then you can use ''b'' in all the other ''Views'' of GeoGebra.
 +
*If you define a function <code>f(x)=x^2</code> in another ''View'', you can also use this function in the ''CAS View''.
 +
 +
{{note|1=<div>The output will always be just the expression '''after''' the <code>:=</code>, e.g. if you type <code>b:=5</code> the output will be ''5''. Please also note, that for clarification actually ''b := 5'' will be displayed.</div>}}
 +
 +
==Equations==
 +
* You may write equations using the simple ''Equals'' sign, e.g. <code>3x + 5 = 7</code>.
 +
* ''Arithmetic operations'': You can perform arithmetic operations on equations, which is useful for manual equation solving. {{Example|1=<code>(3x + 5 = 7) - 5</code> subtracts 5 from both sides of the equation.}}
 +
* ''Extracting one Side'': You may extract either the left or right side of an equation by using the commands <code>LeftSide[]</code> and <code>RightSide[]</code>. {{Example|1=<code>LeftSide[3x + 5 = 7]</code> returns ''3 x + 5'' and <code>RightSide[3x + 5 = 7]</code> returns ''7'' }}
 +
 +
==Row References==
 +
You can refer to other rows in the [[File:Menu_view_cas.svg|link=|16px]] ''CAS View'' in two ways:
 +
* '''Static row references''' copy the output and '''won't be updated''' if the ''referenced'' row is subsequently changed
 +
** <code><nowiki>#</nowiki></code>: Copies the previous output.
 +
** <code><nowiki>#5</nowiki></code>: Copies the output of row 5.
 +
* '''Dynamic row references''' insert a reference to another row instead of the actual output and therefore '''will be updated''' if the ''referenced'' row is subsequently changed
 +
** <code><nowiki>$</nowiki></code>: Inserts a reference to the previous output.
 +
** <code><nowiki>$</nowiki>5</code>: Inserts a reference to the output of row 5
 +
 +
=CAS Commands=
 +
GeoGebra also offers a wide range of ''[[CAS Commands]]'' that can be used to create objects in the [[File:Menu_view_cas.svg|link=|16px]] ''CAS View''. Just start typing the name of a ''Command'' into the ''Input Field'' and GeoGebra will offer you a list of ''Commands'' that match your input.
 +
 +
{{note|For a complete list of ''Commands'' see section [[CAS Commands]].}}
 +
 +
{{note|From GeoGebra 4.9.170.0 on, the [[File:Menu_view_cas.svg|link=|16px]] ''CAS View'' supports exact versions of [[CAS View Supported Geometry Commands|some ''Geometry Commands'']]}}.
 +
 +
=CAS View Toolbar=
 +
The [[CAS Tools|''CAS View Toolbar'']] provides a range of ''[[CAS Tools]]'' that can be operated with the mouse and allow you to evaluate input and perform calculations. Just enter your input and use the mouse to click on the corresponding ''CAS Tool'' afterwards in order to apply it to your input.
 +
{{hint|You may select part of the input text to only apply the operation to this selected part.}}
 +
{{note|For a complete list of ''Tools'' see [[CAS Tools]].}}
 +
 +
=Context Menus=
 +
==Row Header Context Menu==
 +
Right click (MacOS: {{KeyCode|Ctrl}}-click) on a row header in order to show a ''Context Menu'' with the following options:
 +
* '''Insert Above''': Inserts an empty row above the current one.
 +
* '''Insert Below''':  Inserts an empty row below the current one.
 +
* '''Delete Row''': Deletes the contents of the current row.
 +
* '''Text''': Toggles between the current result and a text showing the current result contained in the row, which allows the user to insert comments.
 +
* '''Copy as LaTeX''': Copies the contents of the current row to your computer’s clipboard, allowing you to paste the contents e.g. in a [[Text]] object.
 +
: {{note|1=To copy the contents of more than one CAS row as LaTeX, select the rows you want with {{KeyCode|Ctrl}}-click (MacOS: {{KeyCode|Cmd}}-click), then right-click (MacOS: {{KeyCode|Ctrl}}-click) on the row header and select ''Copy as LaTeX''.}}
 +
 +
==Cell Context Menu==
 +
Right click (MacOS: {{KeyCode|Ctrl}}-click) on a CAS cell in order to show a ''Context Menu'' with the following options:
 +
* '''Copy''': Copies the cell contents to the your computer’s clipboard. Then, right click on a new cell in order to show the '''Paste''' option.
 +
* '''Copy as LaTeX''': Copies the cell contents in LaTeX format to the your computer’s clipboard, so it can be pasted into a [[Text]] object or a LaTeX editor.
 +
* '''Copy as LibreOffice Formula''': Copies the cell contents in LibreOffice formula format to your computer’s clipboard, so it can be pasted in a word processing document.
 +
* '''Copy as Image''': Copies the cell contents in PNG format to your computer’s clipboard, so it can be pasted into an [[Image Tool|Image]] object or in a word processing document.
 +
 +
=Display of Mathematical Objects=
 +
==[[Style_Bar#CAS_View_Style_Bar|CAS View Style Bar]]==
 +
The [[Style_Bar#CAS_View_Style_Bar|''CAS View Style Bar'']] provides buttons to
 +
*change the text style and color
 +
*display a virtual keyboard (GeoGebra Desktop)
 +
*display additional [[Views|''Views'']] in the GeoGebra window (GeoGebra Web and Tablet Apps)
 +
 +
==Showing CAS Objects in the [[File:Menu_view_graphics.svg|link=Graphics View|20px]] ''Graphics View''==
 +
In the [[File:Menu_view_cas.svg|link=|16px]] ''CAS View'', the icon to the left of every row shows the current visibility state (shown or hidden) of the object defined in it (when possible). You may directly click on the little [[File:Mode_showhideobject.svg|link=|16px]] ''Show / Hide Object'' icon in order to change the visibility status of the object in the [[File:Menu_view_graphics.svg|link=Graphics View|16px]] ''[[Graphics View]]''.
 +
 
La vista CAS consente l'utilizzo del CAS (Computer Algebra System) di GeoGebra per il calcolo simbolico. La vista è strutturata in celle, ciascuna delle quali dispone di un campo di inserimento, in alto, e un campo dei risultati, in basso. L'utilizzo di tali campi di inserimento è simile a quello della [[barra di inserimento]], con le seguenti differenze:
 
La vista CAS consente l'utilizzo del CAS (Computer Algebra System) di GeoGebra per il calcolo simbolico. La vista è strutturata in celle, ciascuna delle quali dispone di un campo di inserimento, in alto, e un campo dei risultati, in basso. L'utilizzo di tali campi di inserimento è simile a quello della [[barra di inserimento]], con le seguenti differenze:
 
* È possibile utilizzare variabili a cui non è stato precedentemente assegnato un valore, ad esempio <code>(a+b)^2</code> restituisce ''a^2+2*a*b+b^2''
 
* È possibile utilizzare variabili a cui non è stato precedentemente assegnato un valore, ad esempio <code>(a+b)^2</code> restituisce ''a^2+2*a*b+b^2''

Versione delle 11:12, 15 nov 2014


Menu view cas.svg Interfaccia utente della vista CAS

La Menu view cas.svg vista CAS si apre per impostazione predefinita accanto alla Menu view graphics.svg vista Grafici. Secondo quale di queste viste è attiva, nella parte alta della finestra di GeoGebra sarà visualizzata la barra degli strumenti della vista CAS oppure la barra degli strumenti della vista Grafici, con i pulsanti Annulla / Ripristina nell'angolo in alto a destra.

CAS-View.png


Vista CAS

La Menu view cas.svg vista CAS fa parte della Raccolta viste CAS: è comunque possibile modificare il layout dell'interfaccia utente di GeoGebra secondo le proprie necessità.

Creating Mathematical Objects

Direct Input

The CAS View allows you to use GeoGebra's CAS (Computer Algebra System) for symbolic computations. It consists of cells with an Input Field at the top and output display at the bottom. You can use these Input Fields in the same way as the normal Input Bar, with the following differences:

  • You can use variables that were not assigned any value.
    Esempio: Enter (a+b)^2 into an Input Field and hit the Enter key. You will get the output a²+2ab+b².
  • = is used for equations and := for assignments. This means that the input a=2 will not assign value 2 to a. See the section about assignments for details.
  • Multiplication needs to be marked explicitly. While in the Input Bar you can use both a(b+c) and a*(b+c) for multiplication, in the Menu view cas.svg CAS View only a*(b+c) is valid.

Keyboard Shortcuts for Direct Input

In the Menu view cas.svg CAS View the following keyboard shortcuts help you to evaluate or check your input.

Note: Instead of using these keyboard shortcuts, you may also use the corresponding Tools of the CAS View Toolbar.
  • Enter: Evaluates you input
  • Ctrl + Enter: Evaluates your input numerically
    Esempio: sqrt(2) yields 1.41
  • Alt + Enter: Checks your input but does not evaluate it.
    Esempio: b + b stays as b + b.
    Note: Assignments are always evaluated, e.g. a := 5


In the Menu view cas.svg CAS View the following keyboard shortcuts help you to reuse previous input or output in a new row if you enter them into an empty Input Field:

  • Space bar: Inserts the previous output into the new row.
  • ): Inserts the previous output in parentheses.
  • =: Inserts the previous input into the new row.
Note: You may suppress any output with a semicolon at the end of your input, e.g. a := 5;.

Variable Assignments and Connection with other Views

You may use the := notation for assignments, e.g. b := 5, a(n) := 2n + 3.

  • Free up a name: Use Delete[b] in order to free up a variable name again.
  • Redefine a variable or function: You may redefine a variable or function, but you must do so in the same cell, otherwise it will be treated as a new variable and automatically renamed.

Variables and functions are always shared between the CAS View and the other Views if possible. For example:

  • If you define b:=5 in the CAS View, then you can use b in all the other Views of GeoGebra.
  • If you define a function f(x)=x^2 in another View, you can also use this function in the CAS View.
Note:
The output will always be just the expression after the :=, e.g. if you type b:=5 the output will be 5. Please also note, that for clarification actually b := 5 will be displayed.

Equations

  • You may write equations using the simple Equals sign, e.g. 3x + 5 = 7.
  • Arithmetic operations: You can perform arithmetic operations on equations, which is useful for manual equation solving.
    Esempio: (3x + 5 = 7) - 5 subtracts 5 from both sides of the equation.
  • Extracting one Side: You may extract either the left or right side of an equation by using the commands LeftSide[] and RightSide[].
    Esempio: LeftSide[3x + 5 = 7] returns 3 x + 5 and RightSide[3x + 5 = 7] returns 7

Row References

You can refer to other rows in the Menu view cas.svg CAS View in two ways:

  • Static row references copy the output and won't be updated if the referenced row is subsequently changed
    • #: Copies the previous output.
    • #5: Copies the output of row 5.
  • Dynamic row references insert a reference to another row instead of the actual output and therefore will be updated if the referenced row is subsequently changed
    • $: Inserts a reference to the previous output.
    • $5: Inserts a reference to the output of row 5

CAS Commands

GeoGebra also offers a wide range of CAS Commands that can be used to create objects in the Menu view cas.svg CAS View. Just start typing the name of a Command into the Input Field and GeoGebra will offer you a list of Commands that match your input.

Note: For a complete list of Commands see section CAS Commands.
Note: From GeoGebra 4.9.170.0 on, the Menu view cas.svg CAS View supports exact versions of some Geometry Commands

.

CAS View Toolbar

The CAS View Toolbar provides a range of CAS Tools that can be operated with the mouse and allow you to evaluate input and perform calculations. Just enter your input and use the mouse to click on the corresponding CAS Tool afterwards in order to apply it to your input.

Note Suggerimento: You may select part of the input text to only apply the operation to this selected part.
Note: For a complete list of Tools see CAS Tools.

Context Menus

Row Header Context Menu

Right click (MacOS: Ctrl-click) on a row header in order to show a Context Menu with the following options:

  • Insert Above: Inserts an empty row above the current one.
  • Insert Below: Inserts an empty row below the current one.
  • Delete Row: Deletes the contents of the current row.
  • Text: Toggles between the current result and a text showing the current result contained in the row, which allows the user to insert comments.
  • Copy as LaTeX: Copies the contents of the current row to your computer’s clipboard, allowing you to paste the contents e.g. in a Text object.
Note: To copy the contents of more than one CAS row as LaTeX, select the rows you want with Ctrl-click (MacOS: Cmd-click), then right-click (MacOS: Ctrl-click) on the row header and select Copy as LaTeX.

Cell Context Menu

Right click (MacOS: Ctrl-click) on a CAS cell in order to show a Context Menu with the following options:

  • Copy: Copies the cell contents to the your computer’s clipboard. Then, right click on a new cell in order to show the Paste option.
  • Copy as LaTeX: Copies the cell contents in LaTeX format to the your computer’s clipboard, so it can be pasted into a Text object or a LaTeX editor.
  • Copy as LibreOffice Formula: Copies the cell contents in LibreOffice formula format to your computer’s clipboard, so it can be pasted in a word processing document.
  • Copy as Image: Copies the cell contents in PNG format to your computer’s clipboard, so it can be pasted into an Image object or in a word processing document.

Display of Mathematical Objects

CAS View Style Bar

The CAS View Style Bar provides buttons to

  • change the text style and color
  • display a virtual keyboard (GeoGebra Desktop)
  • display additional Views in the GeoGebra window (GeoGebra Web and Tablet Apps)

Showing CAS Objects in the Menu view graphics.svg Graphics View

In the Menu view cas.svg CAS View, the icon to the left of every row shows the current visibility state (shown or hidden) of the object defined in it (when possible). You may directly click on the little Mode showhideobject.svg Show / Hide Object icon in order to change the visibility status of the object in the Menu view graphics.svg Graphics View.

La vista CAS consente l'utilizzo del CAS (Computer Algebra System) di GeoGebra per il calcolo simbolico. La vista è strutturata in celle, ciascuna delle quali dispone di un campo di inserimento, in alto, e un campo dei risultati, in basso. L'utilizzo di tali campi di inserimento è simile a quello della barra di inserimento, con le seguenti differenze:

  • È possibile utilizzare variabili a cui non è stato precedentemente assegnato un valore, ad esempio (a+b)^2 restituisce a^2+2*a*b+b^2
  • Il simbolo = va utilizzato per le equazioni, mentre := per le assegnazioni: ciò significa che digitando a=2 non verrà assegnato il valore 2 alla variabile a. Fare riferimento alla sezione relativa alle assegnazioni per ulteriori dettagli.
  • I prodotti vanno indicati esplicitamente: mentre nella barra di inserimento è possibile utilizzare sia la notazione a(b+c) che a*(b+c) per indicare il prodotto, nel CAS è necessario utilizzare il secondo tipo di notazione.

Informazioni di base

  • Invio: calcola l'espressione inserita
  • Ctrl + Invio: calcola numericamente l'espressione inserita: ad esempio sqrt(2) restituisce 1.41.
  • Alt + Invio: verifica l'inserimento ma non lo calcola, ad es. b + b rimane b + b. Le assegnazioni vengono sempre calcolate, come ad es. a := 5
  • In una riga vuota digitare:
    • Barra Spaz per ottenere il risultato del calcolo precedente
    • ) per ottenere il risultato del calcolo precedente, in parentesi
    • = per ottenere l'inserimento precedente
  • Per non visualizzare il risultato di un'operazione, digitare un punto e virgola ; al termine dell'inserimento, ad es. a := 5;

Mostrare e nascondere oggetti

Nella vista CAS, l'icona alla sinistra di ciascuna riga illustra lo stato corrente di visualizzazione (visibile o nascosto) dell'oggetto in essa definito (quando ciò è possibile). Facendo clic direttamente sulla pallina bianca/marmorizzata si può modificare lo stato di visibilità di ciascun oggetto nella vista Grafici.

Barra degli strumenti

  • Fare clic su un pulsante della barra degli strumenti per applicare il comando corrispondente alla riga selezionata
  • Selezionare una parte dell'inserimento per applicare il comando o l'operazione esclusivamente alla selezione

Utilizzare il menu contestuale di riga

Un clic con il tasto destro del mouse sull'intestazione di ciascuna riga del CAS visualizza un menu contestuale, contenente le seguenti opzioni:

  • Inserisci sopra: inserisce una riga vuota sopra la riga corrente
  • Inserisci sotto: inserisce una riga vuota sotto la riga corrente
  • Cancella: cancella il contenuto della riga corrente
  • Testo: consente di passare dalla visualizzazione corrente del risultato a una visualizzazione dello stesso in formato testo - consente all'utente di inserire commenti
  • Copia come LaTeX: copia il contenuto della riga corrente negli Appunti, in modo da poterlo successivamente incollare ad es. in un oggetto testo.
Note: Per copiare in formato LaTeX i contenuti di più righe CAS, selezionare le righe con Ctrl+clic, quindi fare clic con il tasto destro del mouse sull'intestazione di riga e selezionare Copia come LaTeX.

Utilizzare il menu contestuale di una cella

Un clic con il tasto destro del mouse in una cella della vista CAS visualizza un menu contestuale, contenente le seguenti opzioni:

  • Copia: copia il contenuto della cella negli Appunti (un clic con il tasto destro del mouse in una nuova cella visualizza l'opzione Incolla)
  • Copia come LaTeX: copia il contenuto della cella negli Appunti , in formato LaTeX format (che può essere incollato in un oggetto testo o in un editor LaTeX)
  • Copia come formula di LibreOffice: copia il contenuto della cella negli Appunti , in formato formula di LibreOffice (che può essere incollato in un documento di testo)
  • Copia come immagine: copia il contenuto della cella negli Appunti , in formato PNG (che può essere incollato in un oggetto Immagine o in un documento di testo)

Variabili

Assegnazioni e collegamento con GeoGebra

  • Le assegnazioni utilizzano la notazione := , ad es. b := 5, a(n) := 2n + 3
  • Per liberare un nome di variabile, ad es. la variabile b, utilizzare il comando Elimina[b]
  • Per ridefinire una variabile o una funzione, è necessario utilizzare la stessa cella in cui sono state definite, altrimenti queste verranno interpretate come nuove variabili o funzioni, e rinominate di conseguenza.
  • Le variabili e le funzioni vengono condivise tra la vista CAS e GeoGebra, se possibile. Definendo b:=5 nella vista CAS è possibile utilizzare b in GeoGebra. La funzione f(x)=x^2 definita in GeoGebra può essere utilizzata nella vista CAS.

Riferimenti di riga

È possibile riferirsi ad altre righe della vista CAS in due modi:

  • I riferimenti di riga statici copiano il contenuto di tale riga, ma quanto copiato non verrà aggiornato con le eventuali modifiche apportate alla riga origine.
    • # copia il risultato precedente
    • #5 copia il risultato della riga 5
  • I riferimenti di riga dinamici inseriscono il riferimento al contenuto di un'altra riga: tale inserimento si aggiornerà con le eventuali modifiche apportate alla riga origine.
    • $ inserisce un riferimento al risultato precedente
    • $5 inserisce un riferimento al risultato della riga 5

Equazioni

  • Per inserire un'equazione utilizzare il simbolo di uguale, ad es. 3x + 5 = 7
  • È possibile applicare operazioni aritmetiche alle equazioni, ad es. (3x + 5 = 7) - 5 sottrae 5 da entrambi i membri dell'equazione. Questa opzione è particolarmente utile per la risoluzione manuale di equazioni.
  • PrimoMembro[3x + 5 = 7] restituisce 3x + 5 e SecondoMembro[3x + 5 = 7] restituisce 7

Comandi e strumenti

L'elenco completo dei comandi e degli strumenti è disponibile nelle sezioni Comandi specifici CAS e Strumenti CAS.

Commenti

Un video di presentazione delle funzionalità principali della Vista CAS.


© 2024 International GeoGebra Institute