Ask Your Question

reb_reb's profile - activity

2024-03-16 11:10:01 +0200 received badge  Famous Question (source)
2020-05-13 20:04:43 +0200 received badge  Notable Question (source)
2020-05-13 20:04:14 +0200 received badge  Notable Question (source)
2019-05-08 15:28:24 +0200 received badge  Popular Question (source)
2018-07-19 14:50:09 +0200 received badge  Taxonomist
2016-11-03 06:13:04 +0200 received badge  Popular Question (source)
2016-08-23 19:09:20 +0200 received badge  Famous Question (source)
2016-02-21 03:35:21 +0200 received badge  Notable Question (source)
2015-01-13 21:43:39 +0200 received badge  Popular Question (source)
2013-05-08 14:54:29 +0200 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 18:53:50 +0200 received badge  Scholar (source)
2013-04-29 18:53:50 +0200 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 17:25:09 +0200 received badge  Student (source)
2013-04-29 16:42:48 +0200 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 13:55:02 +0200 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 15:49:47 +0200 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 18:08:42 +0200 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 17:19:10 +0200 received badge  Supporter (source)
2013-04-22 12:53:09 +0200 received badge  Editor (source)
2013-04-22 12:50:37 +0200 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