Ask Your Question

reb_reb's profile - activity

2019-05-08 08:28:24 -0500 received badge  Popular Question (source)
2018-07-19 07:50:09 -0500 received badge  Taxonomist
2016-11-03 00:13:04 -0500 received badge  Popular Question (source)
2016-08-23 12:09:20 -0500 received badge  Famous Question (source)
2016-02-20 20:35:21 -0500 received badge  Notable Question (source)
2015-01-13 14:43:39 -0500 received badge  Popular Question (source)
2013-05-08 07:54:29 -0500 asked a question How to save and use data from spreadsheet?

Hello community,

to automate my calculations I would like to save results of a spreadsheet calculation as seen below to compute at display the results of further calculations with sagetex.

How could I save the data from a spreadsheet to use them with sagetex?

What for a data-structure/type would you suggest?

image description

2013-04-29 11:53:50 -0500 marked best answer SAGETEX: Howto compute solution of a function

First, what do you want to solve? It's a function, not an equation. Do you want to solve loesung(lambda_z, s_k) = 0? Do you want to compute loesung(5, 4)? Second, I believe that the line defining loesung will overwrite the previous definition of lambda_z, making it a symbolic variable instead of just being 5.

So perhaps:

\begin{sagesilent}

lambda_za = 5  # note the 'a' at the end
s_ka = 4
loesung (lambda_z, s_k) = lambda_z * s_k

\end{sagesilent}
$ \sage {loesung }$

This will print out 20:    
$ \sage {loesung(lambda_za, s_ka) }$
2013-04-29 11:53:50 -0500 received badge  Scholar (source)
2013-04-29 10:25:09 -0500 received badge  Student (source)
2013-04-29 09:42:48 -0500 answered a question Human readable representation of formulas

Thank you for your response to my question. Output with your notation:

f(h)=19/100+(91/100)*((h+140)/760)^2 
   --> 91/57760000*(h + 140)^2 + 19/100

Other example:

S(A) = (0.25+1.91*((A+140)/760)^2) >= 0.85
    --> (3.30678670360111e-6)*(A + 140)^2 + 0.250000000000000 >= (17/20)

S(A) = (25/100+191/100*((A+140)/760)^2) >= 85/100
    -->  191/57760000*(A + 140)^2 + 1/4 >= (17/20)

Is there a other way to display the same formula as programmed, because for a quick review the output is not handy?

2013-04-29 06:55:02 -0500 asked a question Human readable representation of formulas

Hello,

i do have question regarding the representation of formulas in sage.

Is a formula typed into sage, the routines will transform the expression, which could be less human readable. How can I programm sage to use the typed in formula and still compute a solution?

Example:

f(h)=0.19+0.91*((h+140)/760)^2

will be transformed to

(1.57548476454294e-6)*(h + 140)^2 + 0.190000000000000

Sincerely

2013-04-23 08:49:47 -0500 asked a question How to display a function with the values of the variables?

For the generation of worksheets I need to know, if its possible to show a function with the assigned values? What could be a process to do that?

My hope is to generate a output like: (lamda_z,s_k) |--> lambda_z * s_k = 5 * 4 = 20

\begin{sagesilent}
tension (lambda_z, s_k) = lambda_z * s_k
lambda_za = 5
s_ka = 4

\end{sagesilent}
$ \sage {tension (lambda_za, s_ka)}$
\end{document}

thank you

2013-04-22 11:08:42 -0500 answered a question SAGETEX: Howto compute solution of a function

Thank you, that was helpful.

To finalize my project one last question: How can I display the values of the variables in the function?

Like: f(lambda_z, s_k) = lambda_z * s_k = 5 * 4 = 20

2013-04-22 10:19:10 -0500 received badge  Supporter (source)
2013-04-22 05:53:09 -0500 received badge  Editor (source)
2013-04-22 05:50:37 -0500 asked a question SAGETEX: Howto compute solution of a function

Hello,

how can i display the solution of the following function with sagetex?

\documentclass[11pt,a4paper,landscape]{article}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{sagetex}
\usepackage[left=10cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\author{}
\title{Vordimensionierung Hallentragwerk}
\begin{document}

\begin{sagesilent}

lambda_z = 5
s_ka = 4
loesung (lambda_z, s_k) = lambda_z * s_k

\end{sagesilent}
$ \sage {loesung }$
\end{document}

Sincerely reb_reb