< Back
Set-MathVariable
Post
NAME Set-MathVariable
SYNOPSIS
Set a variable that's usable for math expressions. Note that the values are currently always stored using doubles.
SYNTAX
Set-MathVariable [-Name] <String> [-Value] <Double> [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Name <String>
The name of the variable
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Value <Double>
The value of the variable (as a double)
Required? true
Position? 2
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-MathVariable ???????? 2.5029
Defines an approximation of one of Feigenbaum's constants
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-MathVariable ???????? 4.6692
Defines an approximation of one of Feigenbaum's constants
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Set-MathVariable ????????? 1.618033988749895
Defines an approximation of the golden ratio
RELATED LINKS
SYNOPSIS
Set a variable that's usable for math expressions. Note that the values are currently always stored using doubles.
SYNTAX
Set-MathVariable [-Name] <String> [-Value] <Double> [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Name <String>
The name of the variable
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Value <Double>
The value of the variable (as a double)
Required? true
Position? 2
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-MathVariable ???????? 2.5029
Defines an approximation of one of Feigenbaum's constants
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-MathVariable ???????? 4.6692
Defines an approximation of one of Feigenbaum's constants
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Set-MathVariable ????????? 1.618033988749895
Defines an approximation of the golden ratio
RELATED LINKS