Skillpedia
برمجة عامة48k · #5916

sympy

ما الذي تفعله

تساعد هذه المهارة على إجراء حسابات رياضية دقيقة باستخدام الرموز، كما في دفتر الرياضيات، بدلًا من الأرقام فقط. يمكنها حل المعادلات وإيجاد المشتقات والتكاملات وغيرها.

متى تستخدمها

  • ✓عندما تحتاج إلى حل معادلات معقدة دون تقريب الأرقام.
  • ✓عندما تريد حساب مشتقات الدوال أو تكاملاتها.
  • ✓عندما تعمل على مصفوفات بدقة تامة.

رابط المهارة

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/sympy/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/sympy/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“حل المعادلة x^2 - 4 = 0 لإيجاد x.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تخبرني بمسألة الرياضيات التي تريد حلها، فأستخدم مكتبة خاصة تُسمى SymPy للوصول إلى الإجابة الدقيقة. وهي تفهم الرموز مثل «x» و«y» لإجراء الحسابات.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

SymPy - Symbolic Mathematics in Python

Detailed Guide

Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

When to Use This Skill

Use this skill when:

  • Solving equations symbolically (algebraic, differential, systems of equations)
  • Performing calculus operations (derivatives, integrals, limits, series)
  • Manipulating and simplifying algebraic expressions
  • Working with matrices and linear algebra symbolically
  • Doing physics calculations (mechanics, quantum mechanics, vector analysis)
  • Number theory computations (primes, factorization, modular arithmetic)
  • Geometric calculations (2D/3D geometry, analytic geometry)
  • Converting mathematical expressions to executable code (Python, C, Fortran)
  • Generating LaTeX or other formatted mathematical output
  • Needing exact mathematical results (e.g., sqrt(2) not 1.414...)

Getting Started Examples

Example 1: Solve Quadratic Equation

from sympy import symbols, solve, sqrt
x = symbols('x')
solution = solve(x**2 - 5*x + 6, x)
# [2, 3]

Example 2: Calculate Derivative

from sympy import symbols, diff, sin
x = symbols('x')
f = sin(x**2)
df_dx = diff(f, x)
# 2*x*cos(x**2)

Example 3: Evaluate Integral

from sympy import symbols, integrate, exp
x = symbols('x')
integral = integrate(x * exp(-x**2), (x, 0, oo))
# 1/2

Example 4: Matrix Eigenvalues

from sympy import Matrix
M = Matrix([[1, 2], [2, 1]])
eigenvals = M.eigenvals()
# {3: 1, -1: 1}

Example 5: Generate Python Function

from sympy import symbols, lambdify
import numpy as np
x = symbols('x')
expr = x**2 + 2*x + 1
f = lambdify(x, expr, 'numpy')
f(np.array([1, 2, 3]))
# array([ 4,  9, 16])

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
الأسئلة الشائعة

ما هي «الحسابات الرمزية»؟

هي إجراء الرياضيات باستخدام الحروف والرموز (مثل «x» و«y» و«sqrt(2)») بدلًا من الأرقام التقريبية فقط (مثل 1.414 للجذر التربيعي للعدد 2). وهذا يضمن أن تكون الإجابة دقيقة.

هل يمكنني استخدامها في أي نوع من الرياضيات؟

هي ممتازة للجبر والتفاضل والتكامل والجبر الخطي، وبعض مجالات الفيزياء ونظرية الأعداد. لكنها ليست مناسبة للإحصاء المعقد أو تعلم الآلة.

هل أحتاج إلى معرفة البرمجة بلغة Python لاستخدامها؟

لا، يكفي أن تخبرني بما تريد بلغتك العادية، وسأتولى الجانب التقني لاستخدام SymPy.

التفاصيل

الوصف الأصلي من المؤلف

SymPy is a Python library for symbolic mathematics that enables exact computation using mathematical symbols rather than numerical approximations.

repo: sickn33/agentic-awesome-skills

الشعبية

نجوم GitHub
48k
الترتيب
#5916
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة