Задается аргумент ряда и точность. Программа должна выполнять расчет выбранного ряда ( Ряд1 или Ряд2 выбирает пользователь ). Выводятся значения суммы ряда, количество слагаемых и последний член ряда в соответствующие строки.
Описание
Условие:
Задается аргумент ряда и точность. Программа должна выполнять расчет выбранного ряда (Ряд1 или Ряд2 выбирает пользователь). Выводятся значения суммы ряда, кол-во слагаемых и последний член ряда в соответствующие строки. При нажатии на кнопку Сброс все строки очищаются.
Ряд 1: 1+x+x^2/(2!)+...
Ряд 2: (2x^6)/(3!)-(4x^10)/(5!)+(6x^14)/(7!)-...

Вот так выглядит форма в сделанном виде:



Программа состоит из формы (TForm1) и нескольких компонентов (кнопки, поля ввода и вывода, метки, радиокнопки) с соответствующими событиями.
Функция Factorial реализует вычисление факториала числа.
Программа позволяет выбирать один из двух рядов, задавать значение аргумента и точности, а затем вычислять сумму ряда, количество слагаемых и последний член ряда с требуемой точностью.
Lab work program in Lazarus. The archive also contains a file with explanations of the program.
Condition:
Specifies the series argument and precision. The program should calculate the selected row (Row1 or Row2 is selected by the user). The values of the sum of the series, the number of terms and the last term of the series are displayed in the corresponding lines. When you click the Reset button, all lines are cleared.
Row 1: 1+x+x^2/(2!)+...
Row 2: (2x^6)/(3!)-(4x^10)/(5!)+(6x^14)/(7!)-...
This is what the completed form looks like:
Program in execution:
The program consists of a form (TForm1) and several components (buttons, input and output fields, labels, radio buttons) with corresponding events.
The Factorial function implements the calculation of the factorial of a number.
The program allows you to select one of two series, set the value of the argument and the precision, and then calculate the sum of the series, the number of terms and the last term of the series with the required precision.
Показать/скрыть дополнительное описание
Лабораторная работа программа в Lazarus. В архиве также файл с объяснениями работы программы. Условие: Задается аргумент ряда и точность. Программа должна выполнять расчет выбранного ряда (Ряд1 или Ряд2 выбирает пользователь). Выводятся значения суммы ряда, кол-во слагаемых и последний член ряда в соответствующие строки. При нажатии на кнопку Сброс все строки очищаются. Ряд 1: 1+x+x^2/(2!)+... Ряд 2: (2x^6)/(3!)-(4x^10)/(5!)+(6x^14)/(7!)-... Вот так выглядит форма в сделанном виде: Программа при исполнении: Программа состоит из формы (TForm1) и нескольких компонентов (кнопки, поля ввода и вывода, метки, радиокнопки) с соответствующими событиями. Функция Factorial реализует вычисление факториала числа.
Программа позволяет выбирать один из двух рядов, задавать значение аргумента и точности, а затем вычислять сумму ряда, количество слагаемых и последний член ряда с требуемой точностью. Lab work program in Lazarus. The archive also contains a file with explanations of the program. Condition: Specifies the series argument and precision. The program should calculate the selected row (Row1 or Row2 is selected by the user). The values of the sum of the series, the number of terms and the last term of the series are displayed in the corresponding lines. When you click the Reset button, all lines are cleared. Row 1: 1+x+x^2/(2!)+... Row 2: (2x^6)/(3!)-(4x^10)/(5!)+(6x^14)/(7!)-...
This is what the completed form looks like: Program in execution: The program consists of a form (TForm1) and several components (buttons, input and output fields, labels, radio buttons) with corresponding events. The Factorial function implements the calculation of the factorial of a number. The program allows you to select one of two series, set the value of the argument and the precision, and then calculate the sum of the series, the number of terms and the last term of the series with the required precision..
Характеристики лабораторной работы
Список файлов
