Recent content by Somefantastik
-
Fortran Clear a variable in fortran subroutine
Hi FactChecker; thank you for your response. Yes it now seems that I will run the unit tests under several use-cases and try to merge the profiling results.- Somefantastik
- Post #11
- Forum: Programming and Computer Science
-
Fortran Clear a variable in fortran subroutine
Ah, I see. Unfortunately bla_do() is a subroutine, and I can't touch it (I must view it as a black box), so I can't change it into a module. I think because of this problem, I can't use the method you are suggesting.- Somefantastik
- Post #9
- Forum: Programming and Computer Science
-
Fortran Clear a variable in fortran subroutine
Because I am testing bla_do(), I can't modify it. So I can't remove the declaration in the beginning. But I am certain that the way the fortran is set up in my real code, that variable is declared equal to 1 only on the first iteration ; thereafter it takes on the last value when the function...- Somefantastik
- Post #7
- Forum: Programming and Computer Science
-
Fortran Clear a variable in fortran subroutine
will this work if the variable b belongs solely to (and is not returned by) bla_do? In my subroutine (bla_do), it is declared equal to 1. Like this: module bla integer b contains subroutine bla_reset() b = 1 end subroutine bla_reset() function bla_do() integer b \1\ b = b + 3 end...- Somefantastik
- Post #5
- Forum: Programming and Computer Science
-
Fortran Clear a variable in fortran subroutine
Hi gsal, thank you for your response. Unfortunately, I cannot post my code, and I cannot modify the subroutine in any way (I am unit testing it). If I write a module with its set of variables to reset to initial values, can I call that from my parent function? Or are those variable names only...- Somefantastik
- Post #3
- Forum: Programming and Computer Science
-
Fortran Clear a variable in fortran subroutine
Hello, I am trying to figure out how to clear a variable inside a subroutine from a calling function. The variable in the subroutine acts as a persistent(MATLAB) or static(C), but once in so many calls I want it to be reset to empty as if the subroutine is being called for the first time. I...- Somefantastik
- Thread
- Fortran Subroutine Variable
- Replies: 10
- Forum: Programming and Computer Science
-
What are some recommended textbooks for implementing numerical algorithms?
Maybe I missed the numerical methods books in the textbook forum? But I'd like a few suggestions on good texts that are descriptive in implementing numerical algorithms like root-finding, numerical integration, numerical interpolation, etc. I was about to buy Numerical Recipes But I noticed...- Somefantastik
- Thread
- Numerical
- Replies: 1
- Forum: Science and Math Textbooks
-
Graduate Reformulation of the Radiative Transfer Equations
for the following formulation of the RTE, Why do we reformulate in terms of μ = cosθ?- Somefantastik
- Thread
- Radiative transfer
- Replies: 1
- Forum: Calculus
-
Graduate Separable space definition and applications
I read in my metric spaces book that a separable space is that which has a countable, dense subset. This definition has no intuitive meaning to me. I'm able to show if a space is dense or not, and I think I can show a space is countable. But, I'm missing the "so what?!" I would like to...- Somefantastik
- Thread
- Applications Definition Separable Space
- Replies: 2
- Forum: Topology and Analysis
-
Graduate Finding inverse of linear mapping
I hope my function is bounded and continuous. My ultimate goal is to show a homeomorphism from a normed vector space to another. So the function I pick must be bicontinuous (and therefore bounded). So let's assume I was smart enough to pick a bicontinuous and bounded function.- Somefantastik
- Post #3
- Forum: Differential Geometry
-
Graduate Finding inverse of linear mapping
so for a mapping f:X->Y where X,Y are Normed Vector Spaces if I have a function f(x) = y such that x in X and y in Y, how do I explicitly find f inverse? I sat down to do this and realize I've only been trained in the Reals where you switch the x,y and then solve for y. But this won't...- Somefantastik
- Thread
- Inverse Linear Mapping
- Replies: 3
- Forum: Differential Geometry
-
Graduate What is the definition of supremum and how can it be used to compare sequences?
My question involves supremums and their implications: say I have the sequences \left\{x_{k}\right\}_{k=1}^{\infty} and \left\{y_{k}\right\}_{k=1}^{\infty} and I know sup \left\{x_{k}:k\in N \right\} \leq sup \left\{y_{k}:k\in N \right\} What can I say about the sequence...- Somefantastik
- Thread
- Sequences Set Supremum
- Replies: 2
- Forum: Set Theory, Logic, Probability, Statistics
-
Graduate Choosing a Probability Distribution for Visualizing Discrete Data Sets
mkay so I know that I should make a histogram, normalize the histogram, and then fit a curve to the distribution then. Now my question is, can I normalize my data before making a histogram, and will that process give me the probabilities on the y-axis?- Somefantastik
- Post #2
- Forum: Set Theory, Logic, Probability, Statistics
-
Graduate Choosing a Probability Distribution for Visualizing Discrete Data Sets
I have a discrete set of data. I'd like to visualize it probabilistically. Unfortunately, I focused in Num Methods in grad school and am very weak in Probability. Where is a good place to start to visualize this data set using a discrete pdf? I know a histagram is good to show # of...- Somefantastik
- Thread
- Data Discrete Set
- Replies: 2
- Forum: Set Theory, Logic, Probability, Statistics
-
Graduate Taylor's Expansion: Breaking Down a Monster Equation
so when it's expanded, it's only expanded in one direction at a time...?- Somefantastik
- Post #3
- Forum: Calculus