Ask Your Question

Chris Chudzicki's profile - activity

2020-06-04 09:27:05 +0200 received badge  Famous Question (source)
2019-11-01 07:34:32 +0200 received badge  Notable Question (source)
2019-06-23 15:05:01 +0200 received badge  Popular Question (source)
2018-09-01 21:50:04 +0200 received badge  Scholar (source)
2018-09-01 20:34:17 +0200 received badge  Famous Question (source)
2018-09-01 18:08:04 +0200 asked a question vector constants and vector functions

I'm using sage (through cocalc) with my multivariable calculus class this year. I'm looking for a consistent way to define symbol vector-valued functions and vector constants.

I can define a symbolic vector-valued function like this:

var('t')
r(t) = [1, t]
r(1) + r(2) # works as expected

I can define constant vectors like this:

a = vector([1, 1])
b = vector([10, 20])
c = a + b # works as expected

But vector does not work for symbolic functions: r(t)=vector([1, t]) throws.

So:

  • vector seems required for constants, else we don't get correct algebraic behavior
  • vector cannot be used with symbolic functions, else sage throws

Question: I'm worried this is going to cause a lot of confusion for my students. Is there a consistent way to define vectors for both constant values and symbolic expressions?

2016-10-13 02:46:41 +0200 received badge  Notable Question (source)
2015-07-02 23:30:50 +0200 received badge  Popular Question (source)
2013-08-14 11:56:49 +0200 received badge  Supporter (source)
2013-08-14 11:56:42 +0200 commented answer Tick Size in Plots

I've got the method using rcParams to work, using matplotlib.rcParams['xtick.major.size'] = 10 to increase tick length. When I try to increase thickness using matplotlib.rcParams['xtick.major.width'] = 4, sage complains that "xtick.major.width is not a valid rc parameter". In matplotlib.rcParams.keys() in Python clearly lists this as a valid paramter, though . . . ?

2013-08-10 23:58:13 +0200 received badge  Student (source)
2013-08-10 17:13:20 +0200 asked a question Tick Size in Plots

Is it possible to increase the size of the tick marks on a plot made in sage? I would like to be able to insert plots into LaTeX documents using SageTeX's sageplot:

\begin{sagesilent}
f(x) = (x-2)*(x+3)
p = plot( f(x), (x, -4, 4), thickness = 10, fontsize = 42 )
\end{sagesilent}

sageplot[width = 0.33 \textwidth]{p}

Because the plot has been scaled down in TeX, the tick marks are hardly visible. Can I increase their size?