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.Sun, 10 Oct 2021 16:41:28 +0200Solving equationshttps://ask.sagemath.org/question/59315/solving-equations/ To encourage buyers to place 100-unit orders, your firm’s sales department applies a continuous discount that makes the unit price as a function P(x) of the number of unites ordered. The discount decreases the prices at the rate EUR 0.01 per unit ordered. The price per unit for a 100-unit order is P(100) = 20.09 EUR.
(a) Find P(x) by solving the equation
P′(x) = − 1/100 P(x), P(100) = 20.09.
(b) Find the unit price P(10) for a 10-unit order and P(90) for a 90-unit order.
(c) The sales department has asked you to find out if it is discounting so much that the firm’s revenue, r(x) = xP(x), will actually be less for a 100-unit order than, say, for a 90-unit order. Reassure them by showing that r(x) has its maximum value at x = 100.
(d) Graph the revenue function r(x) = xP(x) for 0 ≤ x ≤ 200.JCMSun, 10 Oct 2021 16:41:28 +0200https://ask.sagemath.org/question/59315/Counting number of trues in a 1000 line answerhttps://ask.sagemath.org/question/8368/counting-number-of-trues-in-a-1000-line-answer/
for y in range (1000):
F=matrix([[randint(0,1) for i in range(1,11)] for j in range(1,11)])
F.echelon_form()==identity_matrix(10)
I need help with this formula! We are supposed to find the number of outputted Trues in this statement. Either a percent answer or just the number true out of 1000 would be awesome!
I'm not very well versed in this programming language and any help with a description would be great!!
BrionurTue, 11 Oct 2011 14:29:58 +0200https://ask.sagemath.org/question/8368/Numerically find all roots in an intervalhttps://ask.sagemath.org/question/7823/numerically-find-all-roots-in-an-interval/Is there a function to find all the roots of a function on a given interval? I'm thinking of something like this:
<pre>
sage: find_all_roots(lambda z: tan(z)+z/sqrt(9*pi^2-z^2), 0, 10)
[0, 2.835952326711582867481259929, 5.64146101037285257526886564, 8.338774576412169721334841011]
</pre>
Thanks!Just a nobodySat, 18 Dec 2010 17:42:56 +0100https://ask.sagemath.org/question/7823/