Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

SetterAssumptions

Guides

  • SetterAssumptions Package

Symbols

  • AssumeInteger
  • Assume
  • AssumePositive
  • AssumeReal
  • CurrentAssumptions
  • FrameAndStoreMatrix
  • FrameAndStore
  • RemoveAllAssumptions
  • RemoveAssumptions
  • Restart
KevinSetter`SetterAssumptions`
FrameAndStore
​
FrameAndStore
[var,val]
​ returns a framed image of
val
and also stores
val
into the variable
var
​
Examples  
(1)
Basic Examples  
(1)
To store the result of a calculation in a variable and then display the result as a framed image, use:
In[1]:=
FrameAndStore
[ans,2+3+4]
Out[1]=
ans = 9
Since the answer has been stored to a variable, it can be referenced in further calculations:
In[2]:=
ans+7
Out[2]=
16
For more complicated calculations, it is helpful to break into multiple lines:
In[3]:=
γm
2
c
\​//.mQuantity["ProtonMass"],cQuantity["SpeedOfLight"],γ
1
1-
2
(v/c)
,v0.8c//UnitConvert;​​
FrameAndStore
[energy,%]
Out[3]=
energy =
2.50546×
-10
10
kg
2
m
/
2
s
To store display and store multiple values at once, assign answers to a list of variables:
In[4]:=
γm
2
c
\​//.mQuantity["ProtonMass"],cQuantity["SpeedOfLight"],γ
1
1-
2
(v/c)
,v0.8c//UnitConvert;​​γmv\​//.mQuantity["ProtonMass"],cQuantity["SpeedOfLight"],γ
1
1-
2
(v/c)
,v0.8c//UnitConvert;​​
FrameAndStore
[{energy,momentum},{%%,%}]
Out[4]=
{energy,momentum} = 
2.50546×
-10
10
kg
2
m
/
2
s
,
6.68586×
-19
10
kgm/s

To frame the result of a calculation and make it into a function for future use, include underscores in the arguments:
In[5]:=
2
A
-
b
2
m
2
x
2
m
+
2
b
2
t
2
ℏ

m
2
m
+
2
b
2
t
2
ℏ
/.A
1/4
b
1/4
π
;​​
FrameAndStore
[P[x_,t_],%]
Out[5]=
P[x_,t_] =
b
-
b
2
m
2
x
2
m
+
2
b
2
t
2
ℏ

m
π
2
m
+
2
b
2
t
2
ℏ
SeeAlso
FrameAndStoreMatrix
RelatedGuides
▪
SetterAssumptions Package
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com