ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 22 May 2021 14:16:59 +0200Any SageMath Electromagnetism resources?https://ask.sagemath.org/question/57219/any-sagemath-electromagnetism-resources/Recently, I came across the article "SAGE off Stage: Teaching Electromagnetics with a Symbolic Computation Tool" by Yumin Zhang, David K. Probst. I was wondering, are there any other similar resources? It would be great if it demonstrates plotting electric fields, equipotential surfaces etc.
Others:
> http://matematicas.uam.es/~fernando.chamizo/dark/d_electr.html
>
> https://ernestyalumni.wordpress.com/2016/05/31/electromagnetism/
One on mechanics:
> https://ec.europa.eu/research/participants/documents/downloadPublic?documentIds=080166e5c70c2804&appId=PPGMSChengSat, 22 May 2021 14:16:59 +0200https://ask.sagemath.org/question/57219/Factoring polynomials with symbolic expressionshttps://ask.sagemath.org/question/39772/factoring-polynomials-with-symbolic-expressions/ This question is about writing some code that factors a desired polynomial within $\mathbb{Q}$, $\mathbb{R}$ and $\mathbb{C}$ for educational purposes.
So far, I have the following code:
@interact
def _(p = input_box(default=x^5 + x^4 - 8*x^3 + 11*x^2 - 15*x + 2, label = 'P(x) = ')):
q.<x> = PolynomialRing(QQ, 'x')
r.<x> = PolynomialRing(RR, 'x')
c.<x> = PolynomialRing(CC, 'x')
a.<x> = PolynomialRing(AA, 'x')
qp = PolynomialRing(QQ, 'x')(p)
print(factor(qp))
rp = r(p)
print(factor(rp))
cp = c(p)
print(factor(cp))
ap = a(p)
print(factor(ap))
whose output is
(x - 2) * (x^4 + 3*x^3 - 2*x^2 + 7*x - 1)
(x - 2.00000000000000) * (x - 0.147637797932293) * (x + 3.96552349222940) * (x^2 - 0.817885694297105*x + 1.70805524786870)
(x - 2.00000000000000) * (x - 0.408942847148552 - 1.24129810909174*I) * (x - 0.408942847148552 + 1.24129810909174*I) * (x - 0.147637797932293) * (x + 3.96552349222940)
(x - 2.000000000000000?) * (x - 0.1476377979322930?) * (x + 3.965523492229398?) * (x^2 - 0.8178856942971048?*x + 1.708055247868697?)
The factorization is perfect, but I would like the output to be symbolic whenever possible (ie. written with radicals instead of decimals). I know about the use of the ring 'AA' and that the numbers ending with '?' may be translated into symbolic, but I do not know the smartest way to do this.
Which would be the smartest way to achieve this goal? In the same way, ideas to improve the previous code are also welcomejepstraFri, 24 Nov 2017 18:17:56 +0100https://ask.sagemath.org/question/39772/Seeking advice for classroom installationhttps://ask.sagemath.org/question/38675/seeking-advice-for-classroom-installation/I'm teaching a cryptology class in the fall. We are meeting in a computer lab with Windows computers, and ideally I would like students to be able to use the Notebook interface in Sage. Does anyone have any advice or suggestions for how I should set this up? (Currently Sage is not installed.) In the past (around 2012), I believe we had a special server set up, and then students connected to that by typing in a special address in their web browsers.
I'm not considering using CoCalc (because even though we could maybe get funding for a few quarters, I don't think that would be sustainable longterm).
I will pass on any advice from you to my university's IT department.
Thanks very much!Christopher DavisMon, 28 Aug 2017 18:33:06 +0200https://ask.sagemath.org/question/38675/Can with SageMath create technical models or educational applicationshttps://ask.sagemath.org/question/23347/can-with-sagemath-create-technical-models-or-educational-applications/ Hi,
I'm a teacher of technics science in a Secondary School.
I would like to create an educational applications eg.:
a model of petrol engine with four-stroke cycle
an educational game of the transport to teach the rules of the road.
Is it possible to create these applications with SageMath?Pal CsanyiThu, 10 Jul 2014 16:59:32 +0200https://ask.sagemath.org/question/23347/Does Sage "Show Its Work"?https://ask.sagemath.org/question/10830/does-sage-show-its-work/Does Sage "Show Its Work"? This seems like a very simple question but am unable to find a definitive answer. If Sage simply evaluates to an answer and doesn't show its work to arrive at this a student would not really learn anything from this.K.C.Tue, 17 Dec 2013 15:07:51 +0100https://ask.sagemath.org/question/10830/Plotting the effects of a linear transformation on a gridhttps://ask.sagemath.org/question/10691/plotting-the-effects-of-a-linear-transformation-on-a-grid/I am a student taking a first undergraduate course in linear algebra, and I would like to play around with plots of transformations of the type $T:\mathbb{R}^2\rightarrow\mathbb{R}^2$. I already know a bit of python, so I'm not looking for anyone to write a program for me, but I would really appreciate some tips/general outline of how to do things.
1) First I want to make a grid that I can plot, and then transform by multiplying it with a matrix. Where's the best way to start? Should I use parametric_plot, or maybe it can be done with just a list of **vector([x,y])**'s?
2) Second I want to run the grid through a linear transformation. If I could just plot vectors and offset them (not having them start at the origin), I would only only have to iterate over a list of vectors to get the transformed vectors, but I'm not sure if this is a smart way to do it.
Basically, is there a straight forward way to do this? It doesn't seem like it should be very difficult, if someone could give a rough outline of how to do this it would be greatly appreciated.
Thanks.
eodSun, 03 Nov 2013 09:13:24 +0100https://ask.sagemath.org/question/10691/Does Sage offer course management?https://ask.sagemath.org/question/9959/does-sage-offer-course-management/I will be teaching a course which will be based on a mathematical software, (as in SAGE,MATLAB, MAPLE, Mathematica). The question is how to manage homework. Ordinary email is not efficient it seems.
I am looking for a software which allows something like the following.
a) It opens to the class roll.
b) Upon clicking on a student's name his/her portfolio opens. This directory has all the homework, student's work, and instructor's comments,grades.
c) Student's codes can be tested on the spot. I can run the code student has written and see the output on say /SAGE/SCILAB/MATLAB's output window.
d) The student has access to his/her own page or to a common project page.
I have seen mymathlab,webassign,webwork. But I do not think they are aiming for such a thing. Have not tried blackboard but I doubt it comes close.
How do you manage such courses? What system comes close to above description? This might not be the right forum for this question, what forum would you suggest?maesumiSat, 30 Mar 2013 11:26:58 +0100https://ask.sagemath.org/question/9959/Comparing Sage and Mathematica for an Introductory Coursehttps://ask.sagemath.org/question/8957/comparing-sage-and-mathematica-for-an-introductory-course/I'm working with a committee that's revising the undergraduate math curriculum for UCLA biology majors. We're getting rid of a lot of paper and pencil calculation that's hardly ever used in mathematical biology and introducing a lot of modeling, dynamical systems and computer work. Earlier, we decided to use Mathematica for the course, but I recently learned about Sage and like the idea of using a free program with similar features to Mathematica.
While the students will be learning some programming during the course, that's not our emphasis and they need to be able to use a fairly high level of interactivity from the beginning. (For example, they should be able to interactively manipulate function parameters in the first or at worst second lab session.) Since I'm very much a newcomer to Sage, I want to ask more experienced users how hard it would be to reproduce the functionality of [this Mathematica notebook](http://db.tt/d332CVVs) in Sage. I've seen the slider examples, but they use quite a bit of code. An equivalent to Equation Trekker, which allows you to specify initial condition for a two-ODE system by clicking on the phase plane, would also be very useful. Has anyone coded such a thing for Sage?jaiaMon, 07 May 2012 01:25:09 +0200https://ask.sagemath.org/question/8957/Idempotent helphttps://ask.sagemath.org/question/7745/idempotent-help/Hello my fellow Sage users. I'm trying to come up ith a formula in sage that relates the number of idempotents in Zn with the number of distinct prime factors that n has. Talking about idempotent rings in my class has gotten a few students confused and this formula will help me better explain the concept. Thank you. Any pointers in the right direction would help greatly.CENTOThu, 09 Dec 2010 20:56:12 +0100https://ask.sagemath.org/question/7745/Sage and distance learninghttps://ask.sagemath.org/question/7698/sage-and-distance-learning/I think Sage and computer algebra software in general, could play an important role in math courses for remotely located students. To some extent and with some guidance I think student
exploration with Sage can replace direct interaction with a math tutor. Are there any distance learning course that currently incorporate Sage as part of the "courseware"? How can Sage be integrated with other packages such as Moodle?Bill PageFri, 17 Sep 2010 10:21:37 +0200https://ask.sagemath.org/question/7698/