LimitedFraction with new extension

Đang mở
#1,192 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
18/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
perl
Lĩnh vực
backend

Hướng nghiên cứu

The question is whether the LimitedFraction context can be combined with the Point context, and the example loads contextFraction.pl with Context(context::Fraction::extending("Point")). Start by reading how contextFraction.pl and the Point context are set up, and check how context::LimitedFraction is defined and whether it can be extended the same way. Done means a maintainer confirms the supported way to combine them, or a documented example shows it working.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

MathObject issue

I've been writing/rewriting some problems to take advantage of the new extensions. Here's a nice example with Point and Fraction and I will update the samples problems to include something like this.

DOCUMENT();
loadMacros('PGstandard.pl', 'PGML.pl', 'contextFraction.pl', 'PGcourse.pl');

Context(context::Fraction::extending("Point"));
$A = non_zero_random(-20,20);
$B = non_zero_random(-20,20);
$C = non_zero_random(-20,20);

$xint = Point(Fraction($C,$A),0);
$yint = Point(0,Fraction($C,$B));

BEGIN_PGML
Find the [`x`]-intercept and [`y`]-intercept of the line: [` [$A]x+[$B]y=[$C] `]

a) [`x`]-intercept: [_]{$xint}

b) [`y`]-intercept: [_]{$yint}
END_PGML

ENDDOCUMENT();

@dpvc Is there a way to include the LimitedFraction with the Point context? I couldn't quite determine this.

Ngôn ngữ chính
Perl
Star
48
Fork
78
Merge trung bình
5 ngày 13 giờ
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openwebwork/pg

Tất cả issue của openwebwork/pg

Issue tương tự

Thêm issue về Perl

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.