評定計算

提供:MoodleDocs
移動先:案内検索

作成中です - Mitsuhiro Yoshida

評定計算は (任意の) 他の評定項目に基づき、評定の計算に使用される公式です。これは計算問題タイプとは異なることに留意してください。

評定表の計算は一般的なスプレッドシートプログラムの公式および関数に従います。公式および関数は等号 (=) で始まり単一の数値出力を得るため、一般的な数学演算子および関数が使用されます。そしてこの出力は、あなたが編集している評定項目の値を計算するため使用されます。

評定計算の設定

計算機アイコン
計算例

評定計算を設定するには:

  1. 教師または評定編集パーミッションを持ったユーザでログインしてください。
  2. コース管理ブロックの「評定」をクリックしてください。
  3. 「カテゴリおよび評定項目」タブをクリックしてください (または評定表ドロップダウンメニューより選択してください)。
  4. あなたが計算を設定したい評定カテゴリの反対側にある操作カラム内「計算機アイコン」をクリックしてください。
  5. 等号 (=) で記述を開始してください。
  6. 関数を選択してください; 例: =sum()
  7. 二重角括弧で囲んだIDナンバーを入力してください。例えば次のようになります: =sum([[item1]][[item2]][[item3]])
  8. それぞれのIDナンバーをカンマで区切ってください。例えば次のようになります: =sum([[item1]],[[item2]],[[item3]])
  9. 「変更を保存する」ボタンをクリックしてください。

IDナンバーを割り当てる

あなたは計算式の中にてIDナンバーを参照する形で他の評定項目の値を含むことができます。IDナンバーは二重角括弧 ([[ ]]) を使用して囲んでください。例えば、IDナンバー「Quiz.3」を設定した評定項目がある場合、あなたは計算式の中で [[Quiz.3]] のようにその評定項目を参照することができます。

計算フィールドの下に表示されているのは、あなたのコース内の評定カテゴリおよび評定項目です。それぞれの項目またはカテゴリの横に計算で使用するIDナンバーが表示されます (すでに二重各括弧で囲まれています)。IDナンバーは任意のため、いくつかの項目にはIDナンバーが設定されていません。IDナンバーが設定されていない項目は、代わりにあなたが直接IDナンバーを入力できるフォームフィールドとなります。

As soon as you have assigned the ID numbers you need, you can click the "Add ID numbers" button, and the page will reload and show you the same list with the ID numbers you have just assigned.

演算関数

Every calculation must start with an equal sign (=). Following is a list of the functions supported by the calculation. The comma (,) character is used to separate arguments within function brackets. The comma can also be used to separate different functions. (The separator character could be a semicolon (;) in other languages, see below).

  • average([[item1]], [[item2]]...): Returns the average of a sample
  • max([[item1]], [[item2]]...): Returns the maximum value in a list of arguments
  • min([[item1]], [[item2]]...): Returns the minimum value in a list of arguments
  • mod(dividend, divisor): Calculates the remainder of a division
  • pi(): Returns the value of the number Pi
  • power(base, power): Raises a number to the power of another
  • round(number, count): Rounds a number to a predefined accuracy
  • sum([[item1]], [[item2]]...): Returns the sum of all arguments
  • an asterisk (*) gives the product of two items: [[item1]]*[[item2]]

A number of mathematical functions is also supported:

  • sin
  • sinh
  • arcsin
  • asin
  • arcsinh
  • asinh
  • cos
  • cosh
  • arccos
  • acos
  • arccosh
  • acosh
  • tan
  • tanh
  • arctan
  • atan
  • arctanh
  • atanh
  • sqrt
  • abs
  • ln
  • log
  • exp

計算例

  • =average([[Quiz.1]], [[Quiz.4]], [[Assignment.1]])
  • =average(max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]), min([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]))
  • Weighted grade calculations where item 1 is weighted 30%, item 2 is weighted at 60% and item 3 is weighted at 200%: =sum([[1]]*0.3,[[2]]*0.6,[[3]]*2)

ユーザ言語が英語でない場合の計算

Calculation formulas use decimal and list separators as defined in each language pack.

The decimal separator (a symbol used to mark the boundary between the integral and the fractional parts of a decimal number) is a point (.) in English. In other languages it may be a comma (,).

The list separator (a symbol used to separate a list of ID numbers in square brackets) is a comma (,) in English. In other languages it may be a semicolon (;).

関連情報