JURNAL PENDIDIKAN MATEMATIKA DAN IPA Vol. No. 105 - 117 http://jurnal. id/index. php/PMP CO-DESIGNING PYTHON-BASED INTERACTIVE MEDIA FOR TRIGONOMETRY LEARNING USING CHATGPT: A PRELIMINARY STUDY Churun L Maknun1. Rizky Rosjanuardi1. Yaya S. Kusumah1 Prodi S3 Pendidikan Matematika FPMIPA Universitas Pendidikan Indonesia. Jl. Dr. Setiabudi No 229. Bandung 40154 Email Corresponding: rizky@upi. DOI: http://dx. org/10. 26418/jpmipa. Abstract Challenges in conceptual understanding and engagement persist in undergraduate trigonometry education, often due to static instructional methods and limited use of dynamic visual tools. Recent advances in artificial intelligence offer new opportunities for educators to independently design interactive instructional media, even without advanced programming expertise. Leveraging this potential, the present study aimed to develop and evaluate Pythonbased interactive media, integrating AI-generated content using the ADDIE design model. Data were collected through semi-structured interviews. Likert-scale questionnaires, and observations. Qualitative data were analysed thematically, while quantitative responses were summarised using descriptive statistics. The findings indicate that the interactive media was perceived as engaging in visualising trigonometric concepts, particularly sine and cosine, but revealed areas of confusion regarding the tangent function and challenges in self-directed learning. The study concludes that AIassisted interactive media support conceptual understanding and student engagement, while also empowering educators to create personalised learning tools without requiring sophisticated technical skills. These results inform the design of accessible, technology-enhanced mathematics instruction Keywords: Interactive Media. Python. Trigonometry Learning INTRODUCTION Instructional approaches that rely on static representations and rote memorization have been shown to contribute to persistent misconceptions and superficial understanding . , . This is particularly relevant in trigonometry, many students enter the classroom with silent strugglesAi confused, discouraged, or simply disconnected from what they learn. Instructional representations and rote memorization only, have been shown to contribute to Received Revised Accepted : 2025-07-30 : 2026-01-07 : 2026-01-25 This work is licensed under a Creative Commons Attribution 4. 0 International License Jurnal Pendidikan Matematika dan IPA Vol. No. superficial understanding among learners . , . As a result, there is a educational tools that can make accessible, engaging, and meaningful. Recent technology, particularly the emergence of programming languages such as Python and the integration of artificial intelligence (AI), offer promising PythonAos visualization capabilities enable the creation of dynamic and interactive learning environments that support deeper conceptual understanding . , . Moreover, the incorporation of AI in educational media has the potential to personalize learning experiences . , provide adaptive feedback . , and foster creative and reflective thinking skills . Despite these promising developments, the application of Python-based interactive media and AI-driven content in undergraduate trigonometry instruction remains limited, especially in the context of teacher education programs. The research gap lies in the scarcity of empirical studies that explore the design, implementation, and evaluation of interactive media integrating both Python and AI for prospective mathematics teachers. Previous studies have mainly focused on general mathematics learning tools or on interactive media without fully leveraging AI for content generation and personalization. With the development of AI, teachers are expected to make use of it to create learning that suits the classroomAos current needs. However, there is insufficient evidence regarding the effectiveness and practicality of such integrated media in supporting addressing studentsAo misconceptions in These developments prompt educators to reconsider how AI can support instructional design and enable adaptable learning experiences aligned with pedagogical goals and studentsAo evolving needs. Thus, this study aims to address this gap by developing and evaluating an interactive media tool based on Python and AI-generated content for trigonometry instruction in a mathematics teacher education Specifically, the objectives of this research are: . to describe the process of developing the interactive media, . to assess prospective mathematics teachersAo perceptions and conceptual understanding after using the tool, and . to identify the strengths and limitations of the developed media as a foundation for further refinement. By doing so, this study seeks to contribute to the growing body of knowledge on technology-enhanced education and provide practical recommendations for the design and implementation of innovative learning tools in the digital era. METHOD Participant Four undergraduate students . wo male and two femal. enrolled in a mathematics education program at the university level participated in this All participants had completed coursework in trigonometry, as well as a comprehensive range of mathematics courses. This selection process ensured that all participants Churun L Maknun. Rizky Rosjanuardi. Yaya S. Kusumah Co-Designing Python-Based Interactive Media for Trigonometry Learning Using ChatGPT: A Preliminary Study Jurnal Pendidikan Matematika dan IPA Vol. No. possessed substantial mathematical knowledge and familiarity with both the content and pedagogy of making them well-suited to evaluate the interactive media developed for this research. Data Collection and Analysis Data sources comprised . semi-structured Likert-scale questionnaire, and . observational notes documenting user interactions with the media. The instruments previously validated in educational technology research . , . , yielded quantitative data regarding usability, engagement, and perceived learning outcomes. Qualitative data from interview transcripts were analyzed inductively following Braun and Clarke . reflexive thematic analysis, which facilitated the identification of emergent themes related to conceptual understanding, affective engagement, and usability issues. Quantitative subjected to descriptive statistical analysis, including the calculation of mean scores and standard deviations for each item. Research Design This study employs a Research and Development (R&D) approach, as its primary objective is to design, develop, and evaluate an educational The development process follows the ADDIE frameworkAi Analysis. Design. Development. Implementation, and Evaluation. Analyze The initial phase of the ADDIE model focused on identifying learning challenges and defining instructional Prior studies highlight the difficulties faced by prospective functions, particularly sine, cosine, and tangent, due to the abstract and spatial nature of these concepts . , . Based on interview findings, lecturers have utilized visual explanations during instruction. however, these visuals were presented in static formats rather than through interactive media. These findings informed the need for a Python-based digital learning medium integrating AI assistance to personalize content delivery, enhance engagement, and support self-paced learning. Design The Flowchart in Figure 1 illustrating the applicationAos structure: a start node and sidebar menu with five main The design guides learners from fundamental concepts through interactive exploration to practice. The sidebar menu offers five sectionsAiUnit Circle. Trigonometric Function. Visualization. Exercise, and RadianAieach aligned with a specific pedagogical goal. For example, the Unit Circle module introduces angles and coordinate definitions before the Trigonometric Function module defines sine and cosine in that context, strongly scaffolding understanding by building from geometric intuition to analytic definitions. The persistent sidebar design supports flexible navigation, enabling students to select modules freely while preserving context. In the Visualization manipulate an angle marker on an interactive unit circle plot. As the angle moves, dynamic labels display the corresponding sine and cosine Churun L Maknun. Rizky Rosjanuardi. Yaya S. Kusumah Co-Designing Python-Based Interactive Media for Trigonometry Learning Using ChatGPT: A Preliminary Study Jurnal Pendidikan Matematika dan IPA Vol. No. values, linking geometric and This exploratory environment reinforces trigonometric relationships. indicates that such interactive visualizations facilitate mathematics Note: T = true Figure 1. Flowchart program After exploring concepts, the Exercise module offers multiplechoice quizzes with immediate feedback on incorrect answers. This feedback helps learners correct consistent with evidence that immediate feedback sustains student Finally, the Radian section presents a concise video to clarify radian measure, connecting circular arc length to angle magnitude. The video emphasizes that a radian is defined by arc length on the unit circle, reinforcing its geometric basis. Overall, flowchart-guided structure reflects a constructivist knowledge and actively engages learners throughout. Development To support the development of the interactive trigonometry media, the author engaged in iterative consultations with an AI language model (ChatGPT) to refine both the pedagogical design and technical implementation of the tool. Through a series of prompt-driven interactions, the author received guidance on Python-based interactivity, and aligning content with relevant didactical principles. The dialogue included discussions on the use of dynamic unit circle representations, integration of sine and cosine visualizations, and strategies to address common This collaborative process exemplifies how AI-assisted instructional design can facilitate the Churun L Maknun. Rizky Rosjanuardi. Yaya S. Kusumah Co-Designing Python-Based Interactive Media for Trigonometry Learning Using ChatGPT: A Preliminary Study Jurnal Pendidikan Matematika dan IPA Vol. No. rapid development of educational media tailored to specific learning To provide technical clarity for replication, the media was developed using Python with Matplotlib and NumPy as the primary libraries for Interactive Jupyter Notebook widgets, enabling real-time updates of trigonometric values on the unit circle. The application operated in a desktop environment, allowing users to adjust angle inputs and receive immediate visual feedback on sine, cosine, and tangent values. This prototyping and iterative refinement during development. Below are the examples of the User ChatGPT User ChatGPT "I want to create an interactive media using Python to help students visualize the unit circle and understand sine and cosine values dynamically. Can you help me with the code?" "Certainly! A good starting point is to use the Matplotlib library along with NumPy to We can plot the unit circle and use a slider to allow users to adjust the angle and observe how the corresponding sine and Here's "Can we also include the coordinate values and a tangent line that updates as the angle changes?" "Yes, that's possible. coordinates on the circle and compute the tangent as the ratio of sine to cosine. For visualization, a tangent line can be added, but we must consider how to handle multiples of 90 degrees. IAoll Figure 2 captures a pivotal moment in the development of our Python-based interactive media for trigonometry learning. The left panel . showcases the dynamic unit circle visualization, a feature that allows users to manipulate angles and instantly observe the corresponding changes in trigonometric values. The core Python code powering this widget was initially generated with the assistance of an AI language While the AI provided a functional starting point, we found it necessary to refine and adapt the code to ensure that the visualization met the pedagogical needs of my students and aligned with the curriculum Churun L Maknun. Rizky Rosjanuardi. Yaya S. Kusumah Co-Designing Python-Based Interactive Media for Trigonometry Learning Using ChatGPT: A Preliminary Study Jurnal Pendidikan Matematika dan IPA Vol. No. Figure 2 . Visualization of unit circle, . , the screenshot illustrates the integration of instructional video content, which complements the interactive widgets by offering conceptual explanations about radian. The resulting media, as depicted in Fig. 2, embodies this synergy: it is both a product of technological innovation and a response to the authentic needs of learners in todayAos mathematics classroom Implementation The developed interactive media was implemented in a smallscale undergraduate mathematics education Participants engaged with the media independently over two sessions, each lasting approximately 30 minutes. Before beginning, participants received brief written guidelines explaining the purpose of the media, navigation steps, and expected tasks. To improve replicability, the implementation followed a structured activity flow consisting of three . Pre-use Orientation . Ae 10 minute. Participants read written instructions, explored the sidebar structure, and familiarized themselves with the available modules without performing any learning tasks. Exploration . Ae30 minute. Participants interacted with the recommended sequence: Unit Circle Ie . Trigonometric Functions Ie . Visualization Ie . Exercise Ie . Radian. During this phase, students manipulated angle sliders, observed dynamic updates to trigonometric values, completed multiple-choice items with immediate feedback, and watched a short video explaining instruction was provided, but the researcher observed and recorded notes regarding participant navigation behavior and difficulties. Evaluation . Ae30 After completing the learning modules, participants filled out a short questionnaire assessing Immediately afterward, semi-structured interviews were conducted to collect qualitative feedback about usability, confusion Churun L Maknun. Rizky Rosjanuardi. Yaya S. Kusumah Co-Designing Python-Based Interactive Media for Trigonometry Learning Using ChatGPT: A Preliminary Study Jurnal Pendidikan Matematika dan IPA Vol. No. realistic learning context without This structured activity flow particularly on its potential to support enabled the evaluation of the mediaAos conceptual understanding and selfusability and learning affordances in a directed learning. Table 1. Quantitative data from the Likert-scale questionnaire Questions The media is easy to use and The media helped me understand the concept of angles and trigonometric The visual representations in the media helped me imagine trigonometric graphs. The visual representations in the media helped me imagine trigonometric graphs. I experienced confusion while using this media. I found sine and cosine values easier to understand after using this media. I would recommend this media to be used in trigonometry courses. The media is suitable for self-directed learning by students. Evaluate The semi-structured interviews revealed that the interactive media was perceived as engaging and helpful, particularly in visualizing trigonometric concepts. However, several participants experienced confusion, especially regarding the tangent function and the initial use of the media without guidance. The highlighted as the most beneficial trigonometric values. Suggestions for improvement included the addition of more detailed explanations, practice problems, and a tutorial feature. These insights will inform the further development of the media to better support diverse learners. Avg Most interactive media enjoyable and One participant described their experience with the app, "It was enjoyable because it made answering questions easier without having to However. I was still somewhat confused in determining the value of tangent. " Another mentioned, "It was interesting, but the information provided was still quite " However, two participants particularly due to the lack of guidance on how to use the media. All participants highlighted the usefulness of the visualizations and definitions provided in the media. For example, a student noted: : Were there any parts of the program that helped Churun L Maknun. Rizky Rosjanuardi. Yaya S. Kusumah Co-Designing Python-Based Interactive Media for Trigonometry Learning Using ChatGPT: A Preliminary Study Jurnal Pendidikan Matematika dan IPA Vol. No. trigonometric concepts M1 : "The visualization and definition sections were helpful because they showed the values of sin, cos, and tan. Another participant appreciated the explanation that the coordinates on . os ycu, sin yc. , which aided in visualizing trigonometric values. One participant emphasized that the media helped validate their prior knowledge. Some confusion was reported, particularly regarding the tangent function and the conversion of decimal to fractional values. One participant explained, "Determining tangent was confusing because there was no explanation about tan ycuin the " Another mentioned, "Sometimes I was confused about converting decimals to fractions in the " Two participants indicated that their lack of prior contributed to their confusion when using the media. The media provided new insights, especially regarding the tangent function. One participant stated, "I gained a new understanding of tan ycu. " However, for those who had previously encountered similar visualizations in class, the media did not significantly alter their perception but was considered potentially helpful for school Another participant noted, "Previously. I just memorized the values, but after using this media. I found it somewhat " Participants suggested several improvements, such as adding features to clarify the tangent function, providing more examples and practice questions, including more comprehensive explanations for students with weaker backgrounds in trigonometry and sading a tutorial or guidance feature. The descriptive analysis of questionnaire responses from four mathematics education students revealed that the interactive media was generally perceived as easy to use . ean = 3. and visually effective in illustrating trigonometric graphs . ean = 4. However, some . ean = 3. , and the impact on moderate . ean = 3. While most participants would recommend the media for use in trigonometry courses . ean = 4. , its suitability for selfdirected learning was rated lower . ean = 3. These findings highlight the strengths of the visual components while indicating a need for improved clarity and support within the media. Given the small sample size, these insights are preliminary but valuable for guiding further development. RESULT AND DISCUSSION Interpretation of Visual Strengths A consistent theme across mediaAos visualization features, particularly in helping students AuseeAy and make sense of trigonometric concepts. This finding aligns with Multimedia Learning Theory, which posits that dual-channel . isual and verba. processing retention, especially for abstract content . In the case of trigonometry, where many students Churun L Maknun. Rizky Rosjanuardi. Yaya S. Kusumah Co-Designing Python-Based Interactive Media for Trigonometry Learning Using ChatGPT: A Preliminary Study Jurnal Pendidikan Matematika dan IPA Vol. No. representations with spatial reasoning, visual supports such as a dynamic unit circle can bridge this gap effectively. The interactive nature of the tool allowed students to adjust the angle manually and observe immediate changes in sine and cosine values. This functionality reflects the principle of interactive tools as cognitive tools, where technology serves not only as a delivery platform but also as a medium for exploration and hypothesis testing . Through such interactivity, students engage in "learning by doing" . , which is especially important for developing fluency in multiple representationsAia key challenge in trigonometry education. From perspective, such visual immediacy reduces intrinsic load by transforming abstract symbolic inputs . , sin , cos ) into intuitive visual forms. Students specifically noted that seeing the unit circle and its changing coordinates allowed them to internalize that . os , sin ) represents a point on This essential for building conceptual schemas and aligns with DuvalAos view of mathematical understanding as a product of semiotic conversion . Interestingly, even students who had previously encountered similar representations in class expressed that the media provided an additional layer of clarity due to its interactivity and This reinforces the idea that multimodal, exploratory tools can serve both as primary and reinforcing instructional mechanisms, depending on learnersAo prior knowledge. It also highlights that engagement alone is interactivity must be framework that considers learnersAo developmental needs. Confusion Around Tangent Function Despite the mediaAos success in visualizing sine and cosine, many surrounding the tangent function. This included both conceptual issues . the absence of a visual derivation from sine and cosin. and representational limitations . , no graph or geometric interpretation of tangent on the circl. From the standpoint of Multimedia Learning Theory, this reflects a failure to support active processingAione of the theoryAos key principles. Without prompts or guidance to help learners select, organize, and integrate relevant information about tangent, the media left many students without sufficient cognitive support to make meaning. This also highlights a shortfall in terms of interactive cognitive tools. The tool provided dynamic feedback for sine and cosine, but did not allow users to explore tangent behavior As a result, students were unable to construct meaningful links between tangent and the more familiar sine and cosine values. According to constructivist learning theory, such gaps in representational development of robust mental models . From a Cognitive Load Theory perspective, the absence of clear conceptual cues for tangent may increase extraneous load, as students must infer or recall missing This was exacerbated for Churun L Maknun. Rizky Rosjanuardi. Yaya S. Kusumah Co-Designing Python-Based Interactive Media for Trigonometry Learning Using ChatGPT: A Preliminary Study Jurnal Pendidikan Matematika dan IPA Vol. No. learners without a strong prior conceptual foundation. The fact that some students described themselves as AulostAy or AuconfusedAy when dealing with tan x suggests that the media did not provide adequate support to manage intrinsic complexity, a critical concern when designing tools for abstract mathematical domains. To address this gap, future versions of the media could integrate additional visual elements, such as plotting tangent values on a separate graph or dynamically showing the ratio of sine to cosine. Such modifications would not only provide representational coherence but also promote generative learningAiwhere students build connections across multiple forms. This aligns with MayerAos principles of segmenting and modality, that cognitive tools should support explanation-building. Challenges Self-Directed Learning Although interactive benefits of the media, difficulty when engaging with the tool independently, particularly at the initial stage. This challenge is reflected in the lower average ratings for conceptual understanding . ean = . and suitability for self-directed learning . ean = 3. , indicating that engagement, it did not fully facilitate autonomous knowledge construction for all users. These findings resonate with constructivist learning theory and Multimedia Learning Theory. While interactive digital environments offer the potential for exploration and discovery, they also place cognitive demands on learnersAiespecially those with limited prior knowledge. According to MayerAos Multimedia Learning Theory, effective multimedia instruction must support active processing while recognizing the limited capacity of each cognitive channel . In this study, the absence of guided prompts or structured progression may have increased extraneous load, particularly for students unfamiliar with the tangent function or radian measures. Moreover, as Cognitive Load Theory . suggests, even welldesigned visuals can fail to support learning if learners are left without instructional support to manage intrinsic loadAithat is, the inherent Trigonometry involves interpreting angles in multiple units, transitioning between symbolic and geometric representations, and understanding periodic behavior. Without sufficient scaffolding, these demands can exceed students' working memory capacity. This aligns with interview responses in which students reported not knowing where to begin or how to use the interface effectively. recurring suggestion from participants was the inclusion of a tutorial or onboarding feature. Such a component would help reduce extraneous load and support schema construction by breaking down complex interactions into manageable sequences, thereby increasing accessibility for novice AI-Assisted Development Interactive Tools A unique contribution of this study lies in the use of artificial Churun L Maknun. Rizky Rosjanuardi. Yaya S. Kusumah Co-Designing Python-Based Interactive Media for Trigonometry Learning Using ChatGPT: A Preliminary Study Jurnal Pendidikan Matematika dan IPA Vol. No. intelligence (AI)Aispecifically large language models like ChatGPTAito assist in the development of the interactive media. AI-assisted code development aligned with instructional objectives without requiring advanced programming expertise. This process exemplifies the growing potential for AI to support teacher agency in educational technology design. Within the context of interactive tools as cognitive tools. AI can serve not only learners but also educators by enabling the creation of customizable learning environments. As Jonassen . posits, tools that allow learners to visualize, organize, and manipulate knowledge are not merely delivery systems but extensions of cognition The same principle applies to teachers as tool designers. With the support of AI-generated code, educators can articulate specific pedagogical needsAisuch as showing angle-based changes in sine and cosineAiand functional digital media that reflect those needs. This supports a bottom-up approach to media development grounded in classroom realities rather than top-down templates. From a theoretical standpoint, such tools exemplify the constructivist paradigm in which learning is facilitated through interaction with The Python-based visualizations created in this study allowed students to manipulate angle sliders and observe how values changed in real time. This mirrors the design principles found in interactive platforms like GeoGebra and Desmos, which have been shown to improve student understanding by supporting learning-by-doing . , . Furthermore, the use of AI supports adaptive scaffolding, as it allows for rapid iteration and In future versions of the tool. AI could be used not only for design but also for real-time learner supportAigenerating explanations, or dynamically adjusting tasks based on learner behavior. Such adaptive features are consistent with the goal of fostering self-regulated learning, as noted by Chang et al. and could enhance both engagement and conceptual mastery. CONCLUSION The use of interactive media in this study was positively received by students, particularly the dynamic visualization of sine and cosine values on the unit circle. Participants reported that this specific feature allowed them to actively explore how changes in angle affected the values of The mediaAos engagement with abstract concepts, making them more accessible and visually meaningful. Notably, the development of the interactive media was facilitated through the use of AIassisted specifically leveraging tools like ChatGPT to generate and refine code. This approach enabled the rapid creation of customized visualizations based on precise instructional prompts, demonstrating the potential of AI to assist educatorsAieven those with experienceAiin developing tailored digital resources. As a result, teachers can design and adapt interactive tools to align with specific classroom needs and learning Churun L Maknun. Rizky Rosjanuardi. Yaya S. Kusumah Co-Designing Python-Based Interactive Media for Trigonometry Learning Using ChatGPT: A Preliminary Study Jurnal Pendidikan Matematika dan IPA Vol. No. This highlights a promising shift toward more teacher-driven, adaptive use of technology in mathematics education, where the flexibility of AI-assisted coding personalization digital media in ACKNOWLEDGEMENT The first author gratefully acknowledges financial support from the Indonesian Endowment Fund for Education (Lembaga Pengelola Dana Pendidikan. LPDP) under grant SKPB2898/LPDP/LPDP. 3/2024 REFERENCES