# Variable numeric

![](/files/jLKNCSuq554dOB5UNcJ0)

โจทย์รูปแบบคำนวน มีลักษณะคล้ายกับโจทย์คำถาม Numerical ซึ่งสามารถคำนวนและประเมินผลลัพธ์ได้หลากหลายมากขึ้น รวมถึงสามารถสุ่มค่าใดๆเข้าไปในโจทย์ให้กับนักศึกษาที่ทำโจทย์ได้ด้วย

### Variables

![](/files/maVXk1kEepVRMq5Fmw4x)

* Variable n ถ้าปล่อยว่างไว้ ระบบจะไม่อ่านตัวแปรดังกล่าว
  * ถ้าเลือกเป็น Calculated variable ให้เติมชื่อและค่าตัวเลขในช่อง Variable 1 และ Value ตัวอย่าง 'b=a^4' (โดยที่ a คือตัวแปรที่กำหนดไว้ก่อนหน้านี้)
  * ถ้าเลือกเป็น Predefined variable ให้เติมเฉพาะชื่อที่ช่อง Variable 1 เช่น 'a' จากนั้นกรอกค่าตัวเลขในช่อง Value ของตัวแปรแต่ละตัว
* Value&#x20;
  * ถ้าเลือกเป็น Calculated variable ค่าตัวเลขที่ถูกคำนวนแล้วจะปรากฏในช่องนี้ **ตัวเลขที่ถูกคำนวนแล้วจะแตกต่างกันไปในแต่ละคน(ถูกสุ่มค่า)**
  * ถ้าเลือกเป็น Predefined variable ให้ใส่ค่าตัวเลขในช่องนี้

### Answer

![](/files/Cen9hXWjUh6JvfnGF6kL)

การตั้งค่าส่วนนี้จะเป็นการตั้งค่าสำหรับคำตอบภายในโจทย์คำถามนี้ทุกคำตอบ

* Require scientific notation แสดงสัญกรณ์ทางวิทยาศาสตร์ (ปิด/เปิด)
* Correct answers คำตอบที่ถูกต้องจะต้องถูกใส่ใน Answers อย่างน้อยหนึ่งคำตอบ คำตอบที่ถูกเว้นเป็นช่องว่างจะไม่ถูกนำมาใช้ สามารถใช้ '\*' (เครื่องหมายดอกจัน)แทนตัวแปรใดๆได้ และ Answer 1 จะต้องมีข้อมูลถูกกรอกและตั้งค่าส่วนของคะแนนและฟีดแบคด้วย
* Answer 1 คำตอบ 1 ของโจทย์ข้อนี้&#x20;
  * Accepted error +/- error ที่สามารถยอมรับได้
  * Significant figures จำนวนนัยสำคัญ
  * Grade คะแนนที่นักศึกษาจะได้รับเมื่อตอบโจทย์คำถามข้อนี้ถูกต้อง
* Feedback สามารถเขียนฟีดแบคเฉพาะจุดที่ผิดได้
  * If numerically correct กรณีที่ตัวเลขถูก (ใช่/ไม่)&#x20;
  * If scientific notation required but not used กรณีที่ต้องใส่เลขนัยสำคัญแต่ไม่ถูกนำมาใช้ (ใช่/ไม่)
  * If power of 10 is off กรณีที่ไม่ได้ใช้ power of 10 (ใช่/ไม่)
  * If rounding is incorrect กรณีที่การปัดเศษไม่ถูกต้อง (ใช่/ไม่)
  * For each error deduct กรณีที่เกิด error หรือข้อผิดพลาด (ใช่/ไม่)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tlic.cmu.ac.th/cmumoodle-manual/quiz/creating-quiz/question-type/variable-numeric.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
